superstaralora8 superstaralora8
  • 18-01-2021
  • Computers and Technology
contestada

What will be printed by the following code segment?
x=15
if x==25:
print ('Pizza is yummy’)
else:
print ('My teacher is awesome')

Respuesta :

oladayoademosu
oladayoademosu oladayoademosu
  • 23-01-2021

Answer:

My teacher is awesome

Explanation:

This is because, since x = 15 and the output only prints 'Pizza is yummy’ for x == 25, and 'My teacher is awesome' for everything else, the output is thus 'My teacher is awesome' since, x = 15 ≠ 25.

Answer Link

Otras preguntas

if a ball is dropped from a height of 19.6m, what is the velocity with which the ball hits the ground?
Use the forward substitution method to obtain the closed form formula for the recurrence relation an = 2an-1 +1, and a0 = 0.
Find the distance between the line 1.2x − 0.5y + 1.1=0 and the origin.
Digestion of organic matter inside the cell takes place in what organelle? A. Rough endoplasmic reticulum B. Golgi apparatus C. Lysosome D. Mitochondrion
A shipping company's inventory for a given item is modeled by the function f(x) = 500 − 8x, where "x" is the number of hours that elapse since opening. Explain
what could be the consequences if one forgets the purpose of his/her life?
who played prominent roles in spreading buddhism and hinduism in Southeast Asia
ASAP. Please help! Show work
Which phrase best describes Roosevelt’s explanation of the German-Japanese war plan? A.Trustworthy teammates with mutual dependency B. Equal partnership to spre
The judicial branch of government _____________. Question 1 options: makes laws interprets laws carries out laws repeals laws