今天的课程知识点很少,但成就感要更强一些。终于有了一个能算是交互的交互了。
学习记录:
- print 时,变量与文本只需要用逗号,分隔,变量不要使用引号。
myName=input("waht is your name:")
print("nice to meet you!", myName)
CODE
varName=input("Name a food:")
varPlant=input("Name a type plant:")
varCooking=input("Name a method of cooking:")
varFood=input("Waht word describes burned food:")
varItem=input("Name a DIY item:")
print("MENU")
print(varCooking, varName, "with", varFood, varPlant, "on a bed of", varItem )