Programming with Python Class 8

Data structures – Lists A list is a sequence of variable length. Lists can be modified and items can be added and removed from the list. A list is defined as a sequence of objects separated as commas and enclosed in [] An empty list can be defined with []…

Programming with Python Class 7

Data structures – Tuples A tuple in Python is a sequence of objects. They are used when we want to treat a sequence as a single object. Examples of tuples can be the coordinates (x, y) or the definition of a color with its red, blue and green components (r,…

Programming with Python Class 6

Functions   A function is a sequence of actions that perform an operation and that can be identified by a name. The functions allow us . have a more structured code . avoid code repetition . is the basis of structured programming . can be reused with other programs  …

Programming with Python Class 5

Real projects We are going to make a parenthesis in the usual course of the course to propose a series of projects that we could carry out with Python. The idea is to carry out a real project that helps us delve into the programming language and investigate new concepts.…

Programming with Python Class 4

Variables and operations In this class we will see the data types that can be used in Python. Integers and reals An integer variable is the one that stores a number without decimals To handle decimal numbers we will use the float (real) Example integers age = 35# Show age…