This class uses a Replit curriculum https://replit.com/curriculum/Intro-to-Python . Thanks to Replit.com for the platform and Andy Colley for the curriculum and the slides.
https://docs.google.com/presentation/d/1iQtjLPF7ZCsytrZSkp3I_v9uE4SvYNA8x5TQLKQETJU/edit?usp=sharing
https://docs.google.com/presentation/d/1iQtjLPF7ZCsytrZSkp3I_v9uE4SvYNA8x5TQLKQETJU/edit?usp=sharing
https://docs.google.com/presentation/d/1iQtjLPF7ZCsytrZSkp3I_v9uE4SvYNA8x5TQLKQETJU/edit?usp=sharing
https://realpython.com/python-lists-tuples/
Few articles that explain the difference between Lists, Tuples, Sets, and Dictionaries and when they are used
https://www.educative.io/answers/list-vs-tuple-vs-set-vs-dictionary-in-python https://towardsdatascience.com/15-examples-to-master-python-lists-vs-sets-vs-tuples-d4ffb291cf07 https://jerrynsh.com/tuples-vs-lists-vs-sets-in-python/
A nice 20 min video that explains all four Python: Data Structures - Lists, Tuples, Sets & Dictionaries tutorial
Let's say you need to trim spaces and capitalize a string text
. You can call the capitalize and trim methods one after the other, text.strip().capitalize()
Enumerate is a built-in function of Python. It allows us to loop over something and have an automatic counter.
Here is an artice from Real Python website that explains enumerate and givex several example usecases.
https://realpython.com/python-enumerate/
break
will exit a loop
continue
will skip the records below move on to the next iteration of the loop
pass
will not do anything
Here is an article that explains break, continue and pass https://www.digitalocean.com/community/tutorials/how-to-use-break-continue-and-pass-statements-when-working-with-loops-in-python-3
https://docs.python.org/3/library/functions.html
https://realpython.com/nltk-nlp-python/