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

(10y^3+20y^2+55y)/5y
what is the answer for (20,8),(9,16) ?
find an equivalent expression without parentheses -(50x-15y+15)=
Scarcity is the condition of not having enough goods and services to satisfy everyone's?
Scarcity is the condition of not having enough goods and services to satisfy everyone's?
how is mass transit in cities a possible solution tk urban air pollution?
Historians of china have traditionally dated the beginning of Chinese civilization to the founding of the what??
Can someone use the word delta in a sentence
Data are drawn from a symmetric and bell shaped distribution with a mean of 120 and a standard deviation of 5. There are 900 observations in the data set. What
How is it possible for Mercury to have frozen ice ?