二手产品经理

二手产品经理

THIS IS RENO

Learn Python Online in 100 Days - Day 2

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:

  1. The input is a command entered by the user, such as input("what is your name:")
  2. Variables cannot have spaces, and camel case looks better. When using variable names, they must be exactly the same, and case-sensitive.
  3. 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)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.