# ChapterLogic/switch0.py """"Roll die if it is a 6 you win,1,2,3 you lose 1 You lose= 1 """ import random def main(): dd = random.randint(1,7) #roll die print(dd) if ( dd == 6 ): print("BEST win is 6") elif (dd == 5 or dd == 4): print("Nice try= ", dd) else: #default case print("You lose= ",dd) main()