Your starter files

This commit is contained in:
Mr. W 2026-09-09 12:53:48 -05:00
commit aa1d89e3ab
2 changed files with 47 additions and 0 deletions

14
hello.py Normal file
View file

@ -0,0 +1,14 @@
# 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.
# 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)