my first program
This commit is contained in:
parent
86b9525c47
commit
2738f61c8d
1 changed files with 3 additions and 0 deletions
3
hello.py
3
hello.py
|
|
@ -12,3 +12,6 @@ print("Nice to meet you, " + name)
|
|||
# Wrapping it in int() turns that text into a number.
|
||||
age = int(input("How old are you? "))
|
||||
print("Next year you will be", age + 1)
|
||||
print("what is your favorite color?")
|
||||
color = input("what is your favorite color? ")
|
||||
print("My favorite color is " + color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue