Question
George is creating a program that will ask the user to input their grade in school. George wants to prevent the program crashing if the user enters letters instead of a number. Which of the following can be used?
(1 point)
Responses
for loop
for loop
try block
try block
ValueError signifier
ValueError signifier
trace table
(1 point)
Responses
for loop
for loop
try block
try block
ValueError signifier
ValueError signifier
trace table
Answers
GPT 3.5
try block
Related Questions
George is creating a program that will ask the user to input their grade in school. George wants to...
George is creating a program that will ask the user to input their grade in school. George wants to...
George is creating a program that will ask the user to input their grade in school. George wants to...