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 player_name belongs to.
import random
player_name = 'Gandalf'
player_type = 'Wizard'
def roll():
"""Returns a roll of a 20-sided die"""
number = random.randint(1,20)
return number
print('A troll attacks!')
troll_roll = roll()
player_roll = roll()
print('Player: %s Troll: %s'%(str(player_roll), str(troll_roll)))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!