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 would I divide 1/2 by 2/10?
2^x + 2^-x =5/2 pls I need d. ans​
what do the myrhbusters brow up in a microwave?
How does the wave model of electrons orbiting the nucleus account for the fact that the electrons can have only discrete energy values?a. Electrons are able to
what is the answer for the question 20.x+90
A 14.630 g milk chocolate bar is found to contain 9.315 g of sugar.
What is 1/4+3/8 what is the answer to that
How do you solve 7a- 17=4a+1
Which of the following is Not an advantage of classification? Question 11 options: a) Can reduce institutional tension by placing inmates in the prison in which
5-10. A fish tank that holds 80 gallons of water is 55% full. Create a drawing like Louis’s in problem 5-4 to represent this situation.