From d7f41fbd99a89059bdefd0b45e253b692a6a8848 Mon Sep 17 00:00:00 2001 From: "Mr. W" Date: Wed, 9 Sep 2026 12:54:13 -0500 Subject: [PATCH] Your starter files --- README.md | 8 ++++++++ hello.py | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 README.md create mode 100644 hello.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..36b5c38 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# python-class + +Instructor-owned. Holds every session's starter, completion problems at three +fill levels, and crib sheets for the python class. + +Students read this; they never push to it. A session's starter reaches a +student by being fanned out into their own `python` repo before class, so the +only command they run is `git pull`. diff --git a/hello.py b/hello.py new file mode 100644 index 0000000..3957ed2 --- /dev/null +++ b/hello.py @@ -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)