Lucky Sevens Game (beginner)
<p>I am having trouble getting the program to repeat the loop until <code>mypot != 0</code>. The object of the program is to ask user for amount of money to put in the pot, and ask user to roll dice until <code>mypot !=0</code></p>

<pre><code>import random

mypot = int(input("Please enter the amount of money you want in the pot: "))
diceroll1  = random.randint(1, 7)
diceroll2 = random.randint(1, 7)
myrole = (diceroll1 + diceroll2)
while True:
    mypot &gt; 0
if myrole == 7:
    print("Your roll was a 7 you eaerned press enter to roll again:  ", mypot + 4)
    break
elif  myrole != 0
    print("Sorry you did not roll a 7 press enter to roll again: ", mypot - 1)
    break
elif mypot != 0:
    print("Sorry you do not have no more money in your pot")
    break
</code></pre>

<hr>

<p><strong>Update:</strong> I am having trouble getting the program to repeat the loop until <code>mypot == 0</code></p>

<pre><code>import random

mypot = int(input("Please enter the amount of money you want in the pot: "))
while mypot &gt; 0:    # looping untill mypot &lt;= 0
  dice_roll = random.randint(1, 7), random.randint(1, 7)  # rolling the dices
print(dice_roll[0], dice_roll[1])
myrole = sum(dice_roll)
if myrole == 7:
    mypot += 4    # without this you're not modifing the myrole value
    print("Your roll was a 7 you earned. Press enter to roll again:", mypot)
else:
    mypot -= 1
    print("Sorry you did not roll a 7. Press enter to roll again:", mypot)
input()   # waiting for the user to press Enter

print("Sorry, there's no more money in your pot.")
</code></pre>
