We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b46451 commit 943720bCopy full SHA for 943720b
main.py
@@ -12,4 +12,14 @@
12
13
# collection user's name:
14
name = input( 'What is your name: ' )
15
-print( 'Nice to meet you, ', name)
+print( 'Nice to meet you, ', name )
16
+
17
+# collect user's age
18
+age = input( "How old are you: " )
19
20
+# branch out using if statement
21
+if age <= 10:
22
+ print( 'Sorry ', name, '! We are not allowed to provide game for kids less then 11 years old!' )
23
+ exit()
24
25
+print( 'Hi ', name, ', Welcome to the game!' )
0 commit comments