animexcartoons209
animexcartoons209 animexcartoons209
  • 25-04-2020
  • Computers and Technology
contestada

Can anyone please help with this programming code in python num= 7 if num > 3: print(“3”) if num < 5: print(“5”) if num == 7: print(“7”) and please explain step by step cause I’m confuse

Respuesta :

alexzorrilla0301 alexzorrilla0301
  • 25-04-2020

Answer:

The program will print out:

3

7

Explanation:

Let's replace "num" with what this variable is defined to in all of you if statements.

First if statement:

if 7 > 3:

 print("3")

Result: 7 is indeed greater then 3, so it will print "3"

Second if statement:

if 7 < 5:

 print("5")

Result: 7 is not less than 5, so it will not print "5"

Third if statement:

if 7 == 7:

  print("7")

Result: 7 is equal to 7, so it will print "7"

Answer Link

Otras preguntas

how.many types of bouyancys are there​
Find the values of the root mean square translational speed v, molecules in gaseous diatomic oxygen (O2), gaseous carbon dioxide (CO2), and gaseous diatomic hyd
Todos mis _______________ (relatives) estaban en el aeropuerto cuando llegué de Chile.
Click on the implied main idea .
QUESTION 4 Jane obtained a score of 20 on the financial risk-taking scale. There is a 99% chance that her true score is between: a. 6.3 - 33.7 b. 15.4 - 24.
Suppose the economy goes from a point on its production possibilities frontier (PPF) to a point below that PPF. Assuming that the PPF has not shifted, this coul
pls help asap! 10 points are given x
Help me with english please
3) 6x + 7y= -9 -4x -5y = 5
65% Solve the equation x square2-x=42 using a trial and improvement method. You MUST show all your working. Pls help