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 is 15×25and what is 16÷6
why is a written Constitution important to limited goverment
What's the answer to this
What part of speech is the italicized word in the sentence below? Four score and seven years ago, our forefathers brought forth upon this continent a new natio
Does replacement insurance depreciate the value of personal property?
Just a few colored pencils were available green, orange, and purple. Please rewrite this sentence EXACTLY but place the colon in the right location.
i don't understand this. please help me, much appreciated !! btw you don't have to do the questions but help me do the table, thank you !!
which shows the image of quadrilateral ABCD after transformation
eukaryote:mitosis:: prokaryote:a.binary fissionb.buddingc.both binary fission and buddingd.none of the above
what can happen to soil if the hydrogen ion concentration increaes