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

a smart self-driving car met an accident with a person on the road, who is responsible morally? a) The car owner b) The person c) The developer d) Computer Visi
From which activity tab can you perform a Demand Bill? A) Guarantor Snapshot B) Billing History C) Guarantor Account Edit D) Inquiry
What is the 2 to the power of 11​
5. Just as Ellie began to explore more, someone turned on the lights. Ellie was shocked and quickly hid under one of the tables. Mr. Ford walked toward the cup
Determine the mas of 3.50 mol of N2
A ____________ is a program that fulfills the requests of a client? 1) software 2) system 3) server 4) service
Haley substituted the values of a, b, and c into the quadratic formula below. x =   What was Haley’s function in standard form? f(x) = x2 + x +
In the labor search framework, What is the reason for MPN not equaling the real wage when there is no market power?
Is (–1, –4) a solution to this system of inequalities? y > 3x − 3 y < –10x − 1
The tale of Daedalus and Icarus is a classic legend. Question 4 options: True False