今天的课程应该是昨天学的,想找一个借口逃避没有坚持每天学习的问题,反思一下,坚持就是胜利。
学习记录:
- input 是用户输入命令,如 input ("waht is your name:")
- 变量不能有空格,驼峰式比较好看。变量名使用的时候要完全一致,大小写敏感。
- print 打印变量,不需要引号,比如
myName=input("waht is your name:")
print("nice to meet you!")
print(myName)
CODE
myName=input("What's your name?:")
myFood=input("What's your favourite food:")
myMusic=input("What's your favourite music:")
myLive=input("Where do you live:")
print("You are")
print(myName)
print("You're probably hungry for")
print(myFood)
print("and you' re definitely getting your groove on to")
print(myMusic)
print("living in the amazing")
print(myLive)