Difference between revisions of "EGR 103/Spring 2022/Lab 12"
Jump to navigation
Jump to search
(Created page with "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...") |
|||
Line 1: | Line 1: | ||
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. | 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 == | ||
+ | * [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://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 11:39, 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 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