This course is part of the GenAI, Web 3, and Metaverse Program
After completing this course, move on to the Learn Generative AI Repo
Days: Monday, Tuesday, Thursday, Friday, Saturday, and Sunday
Time: 08:00 PM to 10:00 PM
Join Zoom Meeting
https://us06web.zoom.us/j/82224691502?pwd=6Mq6Wt09uUkVLme859duUYP1Efww4K.1
Meeting ID: 822 2469 1502
Passcode: 936542
This session will also be live streamed on YouTube:
https://www.youtube.com/@panaverse/streams
Modern Python: New Features, Better Code
Modern Good Practices for Python Development
Install Anaconda with Python 3.12
Read this Document for Reference
conda create --name myenv3_12 python=3.12
conda env list
conda activate myenv3_12
python --version
- Python Crash Course 3rd Edition
- Chapter 5 of Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter 3rd Edition
We will cover Python version 3.12+ with Latest Features
Update the Book Code with Type Hints Resources for Python Crash Course
https://docs.python.org/3/library/typing.html
https://www.javatpoint.com/type-hint-concepts-to-improve-python-code
Note: The last article is not current because it does not use collections.abc
- Abstract Base Classes (collections.abc)
https://www.youtube.com/watch?v=oUt1feRoyvI
https://docs.python.org/3/library/collections.abc.html
- Yield in Python
https://www.simplilearn.com/tutorials/python-tutorial/yield-in-python
https://stackoverflow.com/questions/74774919/proper-typing-for-a-interesting-yield-function
Example of type hint for a function returning yield i.e. generator function:
First Import:
from collections.abc import Iterator
Then define the function that returns yield:
def my_generator()-> Iterator[int]:
function statements
- Advanced Classes Topics in Python
Class Attributes and Methods vs Instance Attributes and Methods in Python
https://www.tutorialsteacher.com/articles/class-attributes-vs-instance-attributes-in-python
https://www.digitalocean.com/community/tutorials/python-static-method
Public, Protected, Private Members
https://www.tutorialsteacher.com/python/public-private-protected-modifiers
How To Use the str() and repr() Methods in Python:
https://www.digitalocean.com/community/tutorials/python-str-repr-functions
Duck Typing:
https://ioflood.com/blog/duck-typing/
Type Statements:
https://docs.python.org/3.12/reference/simple_stmts.html#the-type-statement
Additional Readings:
Comprehensive Data Analysis with Pandas
Pandas Project: Make a Gradebook With Python & Pandas
Total Questions: 40
Duration: 60 minutes