A student is learning Python and is reviewing a Python script as follows: Under which condition will the elif statement be evaluated?

IT Questions BankCategory: DevNetA student is learning Python and is reviewing a Python script as follows: Under which condition will the elif statement be evaluated?

Question:
A student is learning Python and is reviewing a Python script as follows:

Under which condition will the elif statement be evaluated?

  • when the input is a float number
  • when the first print statement fails
  • when the input is a string
  • when the if statement is false

Exam with this question: DevNet Associate (v1.0) – Module 1 Exam Answers

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments