Hi,
I am trying to design a baseball game based on a dice roll for fun.
I am having an issue with nested ifs
I am trying to design a baseball game based on a dice roll for fun.
I am having an issue with nested ifs
from random import randint manonbase={'1':'f', '2':'f', '3':'f'} team1runs=0 team2runs=0 innings=0 outs=0 #roll=randint(1, 20) roll = 1 if roll == 1: #single if manonbase['1']=='t': if manonbase['2']=='t': if manonbase['3']=='t': team1runs+=1 else manonbase['3']='t': print (team1runs)I keep getting an error about an invalid syntax on the else statement and pycharm tells me it expects a colon which is obviously not the issue