Uom 2552 What Is Python Presentation
Uom 2552 What Is Python Presentation
Python can be used for simple tasks such as plotting or for more complex tasks like machine learning
Variables, Objects, and Classes
● A variable is a reference to a value stored in a computer’s memory.
● Variables can be sorted into a variety of categories (or data types) such as numbers (int/float etc),
Boolean values (true/false), and sequences (strings, lists etc).
● An object is a collection of data from a computer’s memory.
ALL VARIABLES ARE OBJECTS although some objects can be defined by data
referred to by multiple variables.
Methods are the functions used to act on/alter an object’s data. They describe
what your object can “do.”
Variables, Objects, and Classes (cont.)
● A class is a collection of objects who share
the same set of variables/methods.