Want to create interactive content? It’s easy in Genially!
Get started free
Intro to Python Tutorial
Smit Shete
Created on March 13, 2025
Start designing with a free template
Discover more than 1500 professional designs like these:
Transcript
By: Smit Shete
Intro to Python Tutorial
Start
How to install Python
- This video teaches you how to install python
- The installation may vary depending on your computers operating system, follow the approriate links for installation:
- https://www.python.org/downloads/
- Once python is installed it is recommended you install a IDE (Integrated Developer Environment) to run the code
- The second video will explain how to install VSCode, a popular IDE. You can also install others like PyCharm depending on your preference.
- Next we'll cover some basic data structures
Table of Contents
Evaluation
Lists
Strings
Loops
Variables & Operators
Start
Start
Start
Start
Start
Variables
- Variables:
- A variable is a way to store data so that it can be referenced or used in some way in a program
- Here is an example of storing different types of data in variables and printing them:
Operators
Operators allow for manipulation & comparison
- Using the variables we made previously, we can use python operators to manipulate the data
- This chart shows the operators available in Python
Loops
There are two types of loops in python, a for loop and a while loop
For Loops:
While Loops:
While loops in python execute code as long as the initial condition is satisfied, as the image below demonstrates
For loops are typically used to sequentially iterate over a rnage or over a list.
Strings
- Strings in python are designated by anything in single (' ') or double (" ") quotes.
- The individual characters of a string can also be accessed by using bracket notation [ ]
Lists
- You can add to lists by using the append function as so:
- Lists are a common data structure in Python that can grow or shrink depending on how many elements are inside them
- They are notated by elements inside the square brackets: "[ ]"
- Here is an example of creating and accessing elements in a list
- You can remove items from a list by using the remove function: