23 lines
425 B
Python
23 lines
425 B
Python
# Your first program. Run it with the play button, or in the terminal:
|
|
#
|
|
# python3 hello.py
|
|
|
|
print("Hello!")
|
|
|
|
name = input("What is your name? ")
|
|
print("Nice to meet you, " + name)
|
|
|
|
# int(input(...)) is one thing, not two. input() always hands back text,
|
|
# even when someone types a number, and you cannot do maths with text
|
|
|
|
color = input("what is your favorite color? ")
|
|
print("My favorite color is " + color)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|