print("Hello World")
print(Hello, World!)
>>SyntaxError: invalid syntax
print("Hello, Michael")
>>Michael
name = "Billy"
print(name)
age = 10
print(age)
Create a variable named food and assign to the variable the name of your favorite food. Then print the variable. What data type should you store in the variable?
Now things begin to get a little more interesting when we are able to combine information stored in variables with other strings like in the example below.
name = "Billy"
print("Nice to meet your", name)
>>Nice to meet you Billy
Getting input or information from the user is an essential feature to many programs and is our chance to write our first truly interactive program.
name = input("What is your name?")
print("Nice to meet you", name)