import random def roll_dice(): step=random.randint(1,6) return step…
Question Answered step-by-step import random def roll_dice(): step=random.randint(1,6) return step… import randomdef roll_dice(): step=random.randint(1,6) return stepdef play(step): input(‘Player x press enter to roll!’) print(‘Player x rolled a’,step)def main(): roll_dice() play(step) main() why builtins.NameError: name ‘step’ is not defined Computer Science Engineering & Technology Python Programming CMPTR 174 Share QuestionEmailCopy link Comments (0)


