O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

8-4. Large Shirts:

From

Cover of Python Crash Course

Note

size_chart = ('xs', 's', 'm', 'l', 'xl', 'xxl')

def make_shirt(size = 'l', message = 'I love python'): if size.lower() not in size_chart: quit() print("\nCustomizing your shirt:") print("Size: " + size.lower()) print("Message printed: " + message)

make_shirt('t', 'make america great again!')