Skip to content

Commit 943720b

Browse files
committed
add more message, failed at TypeError!
1 parent 4b46451 commit 943720b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

main.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,14 @@
1212

1313
# collection user's name:
1414
name = input( 'What is your name: ' )
15-
print( 'Nice to meet you, ', name)
15+
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

Comments
 (0)