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

por qué es importante sentir la tristeza para enfrentar una perdida​
The number of eggs in the refrigerator e decreased by 9 equals 19. Enter an equation to represent the situation.​
Question 5 Multiple Choice Worth points) 105.05 LCI Most workers for the Union Pacific Railroad were French German Chinese
The Cougar volleyball team won 3/4 of their games this year and 2/3 of their games last year. They play 24 games each year. How many more games did they win thi
The only person who got a medal of honor without shooting a single shot?​
classify the following based on sides and angles.​
Please help me I don’t understand
Select the true statement about default risk. It is the risk that the bond's price will fall below its par value. Bondholders have a degree of legal protection
image down below thx
Describe two ways demand for petroleum has been reduced.