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

The sum of Sally's age plus twice Tomas's age is 12. The difference of Sally's age and Thomas's age is 3. Write and solve a system of equation to find their age
Bryce bought a bag of cashews.he served 7/8 pound of cashews at a party. This amount represents 2/3 of the entire bag. The equation 2/3n =7/8 can be used to fi
What generalization can you make about the ages of rocks that are close to the Mid-Atlantic Ridge?
Why do you think it was important that most delegates had served in state legislatures?
what is the economic term for the money that is received from the sale of goods and services?
Which of the following best describes the First Continental Congress of 1774? The First Continental Congress was a meeting in Boston to discuss how to handle an
Marge has 14 2/5 feet of chain. She wants to make pieces of 3/8 foot long. How many can she make?
What are some positive effects of globalization?These effects have to be concerning me not the US.
the price of n tickets to a play is 9n+ 6 dollars. What is the cost in dollars for 8 tickets to the play
7/8 times c for c =8