今天的課程知識點很少,但成就感要更強一些。終於有了一個能算是交互的交互了。
學習記錄:
- 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 )