sanjayganeshkumar538 sanjayganeshkumar538
  • 03-10-2021
  • Computers and Technology
contestada

What is elif? How does it work in python?

Respuesta :

mxxnchxld
mxxnchxld mxxnchxld
  • 03-10-2021
it is the condition used after the if condition. say you use the if condition and you need to add another outcome, instead of using the if condition again, you’d use elif and end it with the else command.

example:

if num == 10:
print (“correct”)

elif num > 10:
print (“too high”)

else:
print (”too low”)

hope this helps :]
Answer Link
punk12394 punk12394
  • 03-10-2021
Use the elif condition is used to include multiple conditional expressions after the if condition or between the if and else conditions
Answer Link

Otras preguntas

what are the characteristics of living things
Need help ASAP. Please solve for the following inequality
plz help me i would love it
explain how ancient whale fossils found in eqypt are believed to support the theory of evolution.
Explain why phospholipid molecules form a bilayer. (3 marks)
Describe how you could move the flashlight above the paper to
In 100,000 years, the rotation of Earth will be slower by how many seconds?
By the end of the 1800s, there was a change in the nature of the immigrants coming to the United States. Immigration from Northern Europe—England, Ireland, Germ
[Will give Brainliest] Can you please translate the English into French using the pronoun "en"?a. Est-ce que tu manges des frites?b. Yes, I’m eating som
The track team ran a mile and a quarter during their practice how many kilometers did her team runs?