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

1. Which of the following was a direct result of the Pullman strike? a) The Pullman Company began to lay off workers and cut wages. b) The Pullman Company banne
Ca(OH)2(s) + CO2(g) CaCO3(s) + H2O(l) Which describes a way to speed up the collisions between calcium hydroxide and carbon dioxide molecules to produce calciu
In 1 or 2 sentences, explain how unemployment insurance helps people who do not have jobs.
List two factors that helped the US shift to an industrial economy during the Gilded Age.
Whittier most likely got involved with the abolitionist movement _____.
Whats prime factorization of 18 least to greatest?
Solve for x: -4 [x 5] = -16
6n+n+14=0 i need the math
Write a 150 word paragraph or two that describes at least three everyday things that exist or occur because of science. Make sure you use examples different fro
Describe how a cuticle Could have evolved through natural selection P.s not the nails but the plants waxy coating