Question:
So when I use the code it will play and then it will just start from the top right after you say yes on the first one.
print('Your first two numbers are',num1,'and',num2,'\n\tTotal:\t', num1+num2)
f1 = input('Would you like another card?\n\tCard:\t')
if f1.lower() == 'yes' or f1.lower() == 'y':
print('\nHeres another card and it is',num3,'\n\tTotal:\t', num1 + num2 + num3)
elif f1.lower() == 'no' or f1.lower() == 'n':
print('You ended here.')
if num1 + num2 + num3 > 21:
print('Thats over 21, you busted.')
f2 = input('Would you like another card?\n\tCard:\t')
if f2.lower() == 'yes' or f2.lower() == 'y':
print('\nHeres another card and it is',num4,'\n\tTotal:\t', num1 + num2 + num3 + num4)
elif f2.lower() == 'no' or f2.lower() == 'n':
print('You ended there.')
if num1 + num2 + num3 + num4 > 21:
print('Thats over 21, you busted.')
f3 = input('Would you like another card?\n\tCard:\t')
if f3.lower() == 'y' or f3.lower() == 'yes':
print('Thats all the cards that can be delt, you end with ', num1+num2+num3+num4+num5,'.',sep='')
elif f3.lower() == 'no' or f3.lower() == 'n':
print('You ended here.')