We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5afedd6 commit 6c83612Copy full SHA for 6c83612
chap01/hello.py
@@ -0,0 +1,11 @@
1
+# This program says hello and asks for my name.
2
+
3
+print('Hello world!')
4
+print('What is your name?') # ask for their name
5
+myName = input()
6
+print('It is good to meet you, ' + myName)
7
+print('The length of your name is:')
8
+print(len(myName))
9
+print('What is your age?') # ask for their age
10
+myAge = input()
11
+print('You will be ' + str(int(myAge) + 1) + ' in a year.')
0 commit comments