Python Tutorials for AP Computer Science Principles, updated at May 10, 2024
|
Python Listsupdated at May 10, 2024![]() Lists are used to store multiple items in a single variable.Lists are one of 4 built-in data types in Python used to store collections of data, ![]() |
Python Setsupdated at May 09, 2024![]() Sets are used to store multiple items in a single variable.Set is one of 4 built-in data types in Python used to store collections of data, |
Python Tuplesupdated at May 09, 2024![]() Tuples are used to store multiple items in a single variable.Tuple is one of 4 built-in data types in Python used to store collections of data, ![]() |
Python Dictionariesupdated at May 09, 2024![]() Dictionaries are used to store data values in key:value pairs.A dictionary is a collection which is ordered*, ![]() |
Python While Loops/For Loopsupdated at May 09, 2024![]() The while Loop.With the while loop we can execute a set of statements as long as a condition is true.The while loop requires relevant variables to be ready, ![]() |
Python Classes/Objectsupdated at May 09, 2024![]() Python is object-oriented.In Python, |
Python Inheritanceupdated at May 09, 2024![]() Inheritance allows us to define a class that inherits all the methods and properties from another class.Parent class is the class being inherited from, |
Python Iteratorsupdated at May 09, 2024![]() An iterator is an object that contains a countable number of values.An iterator is an object that can be iterated upon, |
Python Polymorphismupdated at May 09, 2024![]() The word "polymorphism" means "many forms", |