0% found this document useful (0 votes)
5 views14 pages

Prerequisite Session 1

Uploaded by

yohanjames245
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views14 pages

Prerequisite Session 1

Uploaded by

yohanjames245
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

PREREQUISITE

SESSION 1
Presented By : Marushka Fernandes
SESSION 1: 2.5 HOURS
SESSION 2: 2.5 HOURS
SESSION 3: 2.5 HOURS
SESSION 4: 2.5 HOURS
TOPICS COVERED
Python Programming Basics:

• Variables, data types, and operators

• Control structures (if statements, loops)

• Functions and modules • Lists, dictionaries, and other data


structures
THINGS TO DO
Create google colab account: https://google.colab/
1. Visit the Google Account Creation Page: Go to accounts.google.com/signup.
2. Fill in Your Details: Provide your first and last name, choose a username, and create a
strong password.
3. Verify Your Account: Google may ask for a phone number to send a verification code.
Enter the code to verify your account.
4. Complete the Setup: Follow the on-screen instructions to finish setting up your account.
Once you have a Google account, you can access Google Colab:
1. Open Google Colab: Navigate to colab.research.google.com.
2. Sign In: Click on "Sign in" and enter your Google account credentials.
3. Create a New Notebook: After signing in, click on "File" > "New notebook" to start a new
Colab notebook.
3
INTRODUCTION
VARIABLES: Variables are used to store data in a
program.

DATA TYPES: Integer, Float, String, Boolean

OPERATORS: Used to perform operations


4
DATA TYPES
4
OPERATORS
5
CONTROL STRUCTURES
IF STATEMENTS: Used to execure code based on conditions
1

FOR LOOP: iterate over a sequence


2

WHILE LOOP: Repeat as long as condition is true


3
6
FUNCTION AND MODULES
Functions
A function is a block of code which runs when it is called.

Modules
A module is used to break down large programs into smaller manageable
and organized files.
5
LISTS, DICTIONARIES AND TUPLES
LISTS: To store multiple iterms in a single variable. TUPLE: Immutable sequence of
1 values.

DICTIONARIES: Store data values in key: value pairs.


2

SET: Unordered collection with no duplicate elements.


3
THANK YOU

You might also like