Skip to content

Commit 07030e1

Browse files
Update Try Except Value Error..py
1 parent 4c867b1 commit 07030e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Try Except Value Error..py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
# Now, put this very same program code above into a conditional while-loop and see
8181
# what happens when the user tries to type letters, instead of typing numbers for their
8282
# age. When the 'try:' statement is executed, the 'break' statement causes the
83-
# conditional while-loop to break out and the 'print' statement ('End of program') is
83+
# conditional while-loop to break out and the 'print' statement ('End of program.') is
8484
# then executed.
8585

8686
name=input('\nWhat is your name please? ').lower().strip()
@@ -94,3 +94,5 @@
9494
except ValueError:
9595
print('\nThe \'try:\' and \'except ValueError:\' block executes/runs whenever a \
9696
letter key is pressed instead of a number key.')
97+
98+
print('End of program.')

0 commit comments

Comments
 (0)