reading-notes

Class 9

Back to home page

Dunder Methods

Q. What is the purpose of dunder methods in Python? Provide an example of a commonly used dunder method.

__str__ method example

AI guru

Q. In the video “AI Guru makes $238,800 with misleading paid course,” what was the main ethical issue raised concerning the use of developers’ work, and how might this have been avoided?

Python statistics

Q. Describe the Python statistics module and give an example of a function within the module that can be used to perform a common statistical operation.

statistics mean example using python

Adding all the numbers together in the list (45), then dividing by the length (9) will equal a mean of 5.

Bookmark and review

Things I want to know more about

What is the difference between a function and a method? Where/when should I use one or the other?