w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Class Attribute is clearly there, but python cant find it

You need to create an instance in order you use your class like this:

gameState = GameState()
while gameState.characters_talked_to != 3:

In your code you were trying to access class-level attribute which is not defined in your class.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.