my first program

This commit is contained in:
marion 2026-09-11 12:56:26 -05:00
parent 0a05180747
commit 6c2871e27a

View file

@ -4,11 +4,11 @@
print("Hello!")
name = input("What is your name? ")
print("Nice to meet you, " + name)
name = input("What is your name? marion ")
print("Nice to meet you,marion " + 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.
# 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("Next year you will be 13", age + 1)