arshmalik
arshmalik arshmalik
  • 26-02-2022
  • Computers and Technology
contestada

Give output for the following:
a. i=125

if i<124:

else:

print(i, 'is a greater number')

print(i, 'is a lesser number')​

Respuesta :

GeorgeDim
GeorgeDim GeorgeDim
  • 26-02-2022

Output: Syntax Error

(Since the if statement is empty, which is not allowed in python)

In case you mistyped the Question:

The condition i<124 is false,

so the code from the else part will get executed.

Output: '125 is a lesser number'

Answer Link

Otras preguntas

how do you write a good essay?
what is 30% of $650.00
THE 3 STOOGES ARE ASKED WHO IS THE SMARTEST. TWO OF THEM ARE TRUTHFUL AND ONE IS A LIAR. LARRY SAYS CURLY IS THE SMARTEST, MOE SAYS LARRY IS THE SMARTEST AND CU
The first compact microwave ovens were sold in 1960. Everybody didn’t use them until the 1980’s.a. comma b. and c. or d. but e. because which one would be
What details from the may 15th entry prove that Charlie's intelligence is growing and increasing daily ?
the interaction between mosquitoes and human beings is called ?
in 5.074 the digit 5 stands for _____________
What two mixed numbers have a sum of 3
How would you find the zeros of the function by rewriting the function in intercept form? Ex: y=x^2-12x+32
THE 3 STOOGES ARE ASKED WHO IS THE SMARTEST. TWO OF THEM ARE TRUTHFUL AND ONE IS A LIAR. LARRY SAYS CURLY IS THE SMARTEST, MOE SAYS LARRY IS THE SMARTEST AND CU