擅长:python、mysql、java
<p>只需在</em>倍增之前打印值<em>:</p>
<pre><code>bet = int(input('Enter your bet: ')) ##takes bet from user
for i in range (1 ,19): ##the range is for the number of holes being played
print("hole", i, "$", bet) ## prints the wager for each hole
bet *= 2 ##double the bet amount for each hole
</code></pre>