Today's lesson should be what we learned yesterday. I want to find an excuse to avoid the problem of not sticking to daily learning. Let's reflect on it. Persistence is victory.
Learning Notes:
- The input is a command entered by the user, such as input("what is your name:")
- Variables cannot have spaces, and camel case looks better. When using variable names, they must be exactly the same, and case-sensitive.
- Use print to display variables, no need for quotation marks, for example:
myName=input("what 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)