Question: What is displayed when the following code is executed? day = 2 3 if day % 1 0 = = 1 : ending =
What is displayed when the following code is executed?
day
if day :
ending st
elif day :
ending nd
elif day :
ending rd
else:
ending th
printstrday ending
st
rd
nd
th
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
