We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c867b1 commit 07030e1Copy full SHA for 07030e1
1 file changed
Try Except Value Error..py
@@ -80,7 +80,7 @@
80
# Now, put this very same program code above into a conditional while-loop and see
81
# what happens when the user tries to type letters, instead of typing numbers for their
82
# 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
+# conditional while-loop to break out and the 'print' statement ('End of program.') is
84
# then executed.
85
86
name=input('\nWhat is your name please? ').lower().strip()
@@ -94,3 +94,5 @@
94
except ValueError:
95
print('\nThe \'try:\' and \'except ValueError:\' block executes/runs whenever a \
96
letter key is pressed instead of a number key.')
97
+
98
+print('End of program.')
0 commit comments