Nov-13-2019, 06:24 AM
Greatings,
I am a new to python and actually whole concept of programming.
Since last one one month i have been working hard but getting stuck many times because training material i have are from instructors who made it on python 2.
I am learning to create a base file for my games references.
I have import collections module
import collections
then while creating vector i used it
class vector(collection.Sequence)
and now the problem start. whenever i tried using vector class for my game but i have error:
Traceback (most recent call last):
File "d:/pYtHON/Pythongames/base.py", line 18, in <module>
class vector(collection.Sequence):
NameError: name 'collection' is not defined
Please share resolution with little explanation to understand it for future reference. Thank You.
I am a new to python and actually whole concept of programming.
Since last one one month i have been working hard but getting stuck many times because training material i have are from instructors who made it on python 2.
I am learning to create a base file for my games references.
I have import collections module
import collections
then while creating vector i used it
class vector(collection.Sequence)
and now the problem start. whenever i tried using vector class for my game but i have error:
Traceback (most recent call last):
File "d:/pYtHON/Pythongames/base.py", line 18, in <module>
class vector(collection.Sequence):
NameError: name 'collection' is not defined
Please share resolution with little explanation to understand it for future reference. Thank You.
