Unexpected NameError in Python without syntax error
Unexpected NameError in Python without syntax error Question: I’m trying to write in Visual Studio Code for Linux a simple roll dice program, but for some reason I have an unexpected NameError that makes me mad. This is my code: from random import randint class Dice: def __init__(self, sides): self.sides = sides def roll(self): play …