Difference between revisions of "EGR 103/Spring 2022/Lab 12"

From PrattWiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
== References ==
 
== References ==
* [https://towardsdatascience.com/introduction-to-python-classes-da526ff745df 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.
+
* [https://towardsdatascience.com/introduction-to-python-classes-da526ff745df 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.
 
* [https://python-course.eu/oop/magic-methods.php Magic Methods] by Bernd Klein on python-course.eu.  This is a brief introduction to classes and dunder methods
 
* [https://python-course.eu/oop/magic-methods.php Magic Methods] by Bernd Klein on python-course.eu.  This is a brief introduction to classes and dunder methods

Revision as of 16:04, 13 April 2022

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