Python
Michael Sadgun Rao K
Assistant Professor
CSE, PVPSIT
Keywords, Variables and Constants
Rules for Identifiers
Keywords - reserved words
Keywords – Reserved Words
Data Types in Python
Python Literals
https://www.scaler.com/topics/python/literals-in-python/
String Literals in Python
Numeric Literals in Python
Numeric Literals in Python
Boolean Literals
Typecasting
Chr() & ord()
Output Function – print()
format() function to print only specified digits after decimal point
Input Function
Split() function on string
Operators - Arithmetic operators
https://www.geeksforgeeks.org/python-operators/
Operators - Comparison operators
https://www.geeksforgeeks.org/python-operators/
Operators - Logical
https://www.geeksforgeeks.org/python-operators/
Operators - Bitwise
Operators - Bitwise
Identity Operators
Membership Operators
Control Statements in python
Selection statements / branching
if statements
if - else statements
elif statements
elif ladder
while loop
while loop - example
for loop
for loop example
Functions in Python
Source - https://www.geeksforgeeks.org/python-functions/ (courtesy)
Functions in Python
Source - https://www.geeksforgeeks.org/python-functions/ (courtesy)
Keyword Arguments - Functions in Python
Source - https://www.geeksforgeeks.org/python-functions/ (courtesy)
Arbitrary Arguments - Functions in Python
Non Keyword (*args )Arbitrary Arguments - Functions in Python
Arbitrary Arguments (**kwargs) - Functions in Python