for Loops

A for loop acts as an iterator in Python; it goes through items that are in a sequence or any other iterable item. Objects that we've learned about that we can iterate over include strings, lists, tuples, and even built-in iterables for dictionaries, such as keys or values. We've already seen the for statement a … Continue reading for Loops

Objects and Data Structures Assessment Test

Test your knowledge. Answer the following questions Write a brief description of all the following Object Types and Data Structures we've learned about: Numbers: Strings: Lists: Tuples: Dictionaries: Numbers Write an equation that uses multiplication, division, an exponent, addition, and subtraction that is equal to 100.25. Hint: This is just to test your memory of … Continue reading Objects and Data Structures Assessment Test

Files (reading and writing) in Python

Python uses file objects to interact with external files on your computer. These file objects can be any sort of file you have on your computer, whether it be an audio file, a text file, emails, Excel documents, etc. Note: You will probably need to install certain libraries or modules to interact with those various … Continue reading Files (reading and writing) in Python