Python Lecture 1 Notes
Python Lecture 1 Notes
WHY PYTHON?
FEATURES OF PYTHON
VARIABLES
Variables are reserved memory locations to save values. So, when the variable is created, depending
upon the type of variable, memory is allotted to store the value.
Global Variables:
Local Variables:
LIST
DICTONARY
TUPLE
SET
FUNCTIONS:
A function is a group of statements that are executed whenever that function is called to perform a
specific task.
Advantages of function:
EXCEPTION HANDLING
An exception is an event, which occurs during the execution of a program that disrupts the normal flow
of the program’s instructions. In general, when a python script encounters a situation that it cannot
cope with it, it raises an exception.