Facebook
From Scribby Mosquito, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 33
  1. def orderPick(pick1, pick2):
  2.     pick1index = months.index(pick1)
  3.     pick2index = months.index(pick2)
  4.  
  5.     if pick1index < pick2index:
  6.         print (months[pick1index], months[pick2index])
  7.     elif pick1index == pick2index:
  8.         print (months[pick1index], months[pick2index])
  9.     else:
  10.         print (months[pick2index], months[pick1index])
  11.  
  12. orderPick(pick1, pick2)
  13.