From da123abb9b9681def4d069a2a18ace4adb943f86 Mon Sep 17 00:00:00 2001 From: allison Date: Fri, 11 Sep 2026 12:56:25 -0500 Subject: [PATCH] my first program --- hello.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hello.py b/hello.py index 3957ed2..ea215e8 100644 --- a/hello.py +++ b/hello.py @@ -8,7 +8,16 @@ 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) +# 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) + + + + + + + + +