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

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

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

Related exam: DevNet Associate (v1.0) – Module 1 Exam Answers