EGR 103/Spring 2022/Lab 12

From PrattWiki
Revision as of 16:04, 13 April 2022 by DukeEgr93 (talk | contribs)
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 by Soner Yıldırım 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