Installing Python
https://www.python.org/downloads/
Installing Python
https://www.python.org/downloads/
Installing PIP
PIP(Preferred Installer Program) is a package management system
used to install and manage software packages/libraries written in
Python
Installing Jupyter
Jupyter Notebook is an open-source web application that allows you to
create & share documents that contain live code, equations, visualizations,
and narrative text
Intro to Jupyter Notebook
Jupyter notebook is a browser-based interpreter that allows us to interactively work with Python
Variables in Python
Blue Where to store data?
Green
Yellow
Variables in Python
Data/Value can be stored in temporary storage spaces called Variables
Color
Blue
0x1289ab
Data Types in Python
Each variable is associated with a data type
5,300 3.14, 6.92 TRUE,FALSE “Blue","Green” 3+4i
Int Float Boolean String Complex
Operators in Python
Python operators are special symbols or keywords that allow us to
perform different operations on variables or values
Arithmetic Operators
Relational Operators Logical Operators
Assigment Operators
Python Tokens
Tokens are the smallest meaningful component in a Program
Keywords
Identifiers
Literals
Operators
Python Keywords
Keywords are reserved words in Python, having a specific
meaning in the language.
Python Identifiers
Identifiers are names used for variables, functions or
objects.
No special character except _(underscore)
Identifiers are case sensitive
First letter cannot be a digit
Python Literals
Literals are constants in Python
I am constant
I don’t change
Python String
String are sequence of characters, such as letters, numbers, or symbols,
enclosed within single quotes (' '), double quotes (" "), or triple quotes (''' ''' or
""" """).
'''This is a multi-line
"Hello, how are string in Python.
'Hello World'
you?" It can span across
multiple lines.'''
Extracting Individual Characters
G R O W D A T A S K I L L S
0 1 2 3 4 5 6 7 8 9 10 11 12 13
-14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1
String Functions
Finding length of a String
Converting string to uppercase
Converting string to lowercase
String Functions
Replacing a substring Number of occurrences of substring
Finding the index of substring Splitting a String