commit bb46eda5404890e76b840e6c1a1b3c9787f66587 parent 60526d16d40bc235579d7543d73358342076571c Author: Evan Alba <evanalba@protonmail.com> Date: Mon, 30 Dec 2024 18:42:29 -0800 feat: Added Python program. Diffstat:
A | python/first.py | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/python/first.py b/python/first.py @@ -0,0 +1,11 @@ +# This program says hello and asks for my name. + +print('Hello world!') +print('What is your name?') # ask for their name +myName = input() +print('It is good to meet you, ' + myName) +print('The length of your name is:') +print(len(myName)) +print('What is your age?') # ask for their age +myAge = input() +print('You will be ' + str(int(myAge) + 1) + ' in a year.')