python-by-example-150-chall.../challenges1-11/challenage-006.py

4 lines
267 B
Python
Raw Permalink Normal View History

2025-05-24 08:27:55 +08:00
all_silces = int(input("how many slices of pizza your have: "))
eat_silces = int(input("how many slices of pizza have you eaten: "))
#print('There are %s slices left' % (str(all_silces - eat_silces)))
print('There are {0} slices left'.format(all_silces - eat_silces))