EGR 103/Spring 2022/Lab 12
Jump to navigation
Jump to search
Not much to go here! The test cases in the starter code will help identify any issues you may have before uploading to Gradescope. You will definitely want to get the __repr__ method working first so you can actually see what your vectors look like by typing their name in the console or using print(a) or print('{}'.format(a)) in the console or your program.
References
- Introduction to Python Classes on TowardsDataScience.com. This is a brief introduction to classes. We did not discuss the idea of "inheritance" and you will not need it for this assignment, but it is an interesting option with classes.
- Magic Methods by Bernd Klein on python-course.eu. This is a brief introduction to classes and dunder methods