""" Felix Muzny DS 2000 Lecture 6 September 24, 2024 A program to go gambling (conditionals + a for loop) Note: rules might vary by section! for this version: 1. doubles win $200 2. otherwise, lose $100 """ import random def main(): print("lec 6 - casino") for i in range(5): # secret code: # i = next value in sequence [0, 1, 2, 3, 4] # print("i:", i) # uncomment to see for yourself! # step 1 - roll dice die1 = random.randint(1, 6) die2 = random.randint(1, 6) # show the die so we can debug print("Die 1:", die1) print("Die 2:", die2) # Step 2 - do computation (and step 3 - communicate results) if die1 == die2 : print("you won $200!") else: print("you lost $100!") # challenge: how would you keep a *running total* of how # much money you have won or lost? (we'll start here on Friday!) main()