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

Which relation is a function?
what is 10 to the seventh power?
Which is a symptom that is common in people with sickle cell disease?
a ball dropped from rest falls freely intil it hits the ground with the speed of 20 m/s . the tine furing which the ball is in free fall is approximately
I need the answers bad
What battles did Prince Estabrook participate in?
Which English king turned the new England area into one colony for better control? A) king james llB) king Williams C) king Henry
I make 25 cookies and i get only 5 what percent yelid that i obatin
The period of peace beginning in the second century was called A. Pax Romana B. Circus Maximus C. insulae D. paterfamilias
Jamie has $37 and he's a bank account on Sunday the table shows his account activity for the next 4 days what was the balance in Jamie's account after his depos