Question: Given the following code, select the namespace player _ name belongs to . import random player _ name = 'Gandalf' player _ type = 'Wizard'
Given the following code, select the namespace playername belongs to
import random
playername 'Gandalf'
playertype 'Wizard'
def roll:
Returns a roll of a sided die"""
number random.randint
return number
printA troll attacks!
trollroll roll
playerroll roll
printPlayer: s Troll: sstrplayerroll strtrollroll
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
