Here is my code if anyone can help then that would be greatly apricated.
import random
a = ["rock", "paper", "scissors"]
def game():
while True:
try:
word = input('Enter rock, paper, or scissors: ')
if word not in a:
raise ValueError # this will send it to the print message and back to the input option
break
except ValueError:
print(" You must enter rock, paper, or scissors.")
comp_draw = random.choice(a)
print('The computer drew ' + comp_draw)
if comp_draw == 'rock' and word =='rock':
print('It was a tie')
elif comp_draw == 'paper' and word =='paper':
print('It was a tie')
elif comp_draw == 'scissors' and word =='scissors':
print('It was a tie')
elif comp_draw == 'paper' and word =='rock':
print('GAME OVER')
elif comp_draw == 'rock' and word =='paper':
print('you won!')
elif comp_draw == 'rock' and word =='scissors':
print('GAME OVER')
elif comp_draw == 'scissors' and word =='rock':
print('you won!')
elif comp_draw == 'scissors' and word =='paper':
print('GAME OVER')
elif comp_draw == 'scissors' and word =='rock':
print('you won!')
if __name__ == "__main__":
game()
while True:
if input('Would you like to play_again? ') == 'yes':
game()
else:
break
font = 'Arial (sans-serif)' : 'normal'
'weight' : 'bold',
'size' : 99}
This is how I've tried to change the font
font = 'Arial (sans-serif)' : 'normal'
'weight' : 'bold',
'size' : 99}
This is the error message I've received
IndentationError: unindent does not match any outer indentation level on line 48 font = 'Arial (sans-serif)' : 'normal' ^ in main.py