Question: Identify the three blocks in this code: spam = 0 if spam == 10: print('eggs') if spam > 5: print('bacon') else: print('ham') print('spam') print('spam')
Identify the three blocks in this code:
spam = 0
if spam == 10:
print('eggs')
if spam > 5:
print('bacon')
else:
print('ham')
print('spam')
print('spam')
Step by Step Solution
3.41 Rating (173 Votes )
There are 3 Steps involved in it
The three blocks are everythi... View full answer
Get step-by-step solutions from verified subject matter experts
