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

etiologies of anorexia (unintentional weight loss)?
If pt has an A1C of 5.7-6.4%, what should tx approach be?
Is the lateral lip of the linea aspera the origin or insertion of the short head of biceps femoris?
What skin lesion is a blister that is larger than 1 cm and filled with clear fluid?
How did Nixon seem to outdo the Great Society in the area of environmental legislation?
Calculate the mass of the product formed when 2.25 L of 0.500 M Cu(NO₃)₂ and 2250.25 mL of 0.250 M LiOH are mixed. A) 132.14 g B) 198.21 g C) 264.28 g D) 330.3
Which of the following security devices would be best to use to provide mechanical access control to the MDF/IDF? a. A smart card b. A key fob c. An employee b
Rectify the following errors assuming that a suspense account was opened. Ascertain the difference in trial balance. (a) Credit sales to Mohan 7,000 were posted
What are general causes of paroxysmal focal symptoms?
Give examples of integral and non integral