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

solve the equation x/3 + 3 = x/2 +2
Find the surface area of the cylinder in terms of pi. Height = 8 in Diameter = 4in
Ice that formed thousands of years ago is often found to contain tiny bubbles of gas. this gas came from __________. ice that formed thousands of years ago is o
Roosevelt did not face any criticism for his programs. True OR false
Sheena presented her informative speech on the life of marie curie. she had decided to cover curies early life and marriage, her scientific achievements despite
What do a mole of magnesium and a mole of iron have in common
There are 9 students running for 4 openings on the student council. Only students who are running for election can be elected; no write-in candidates are allowe
Can someone please explain? I don't understand 5(2x – 3) = 5 What are the solutions to this equation? Show your work. (6 points)
Explain how mass and energy can be conserved even during a chemical change.
How did the growth of the railroad help the cattle industry? A. Workers could get from one job to the next faster. B. Refrigerated railroad cars could t