Unit - One Introduction to Python Programming
Python Syntax compared to other programming languages
Python Applications in Real World
Rules for Python variables:
Many Values to Multiple Variables
One Value to Multiple Variables
x equals "awesome". def myfunc():
Input and Output in Python
Printing Output using print() in Python
Take Multiple Input in Python
Python divides the operators in the following groups:
Comparison (Relational) Operators
Conditional Statements in Python
If else Conditional Statement
Nested if .. else Conditional Statement
Output: thirty percent senior discount!
Example: Iterating Over List, Tuple, String and Dictionary Using for Loops in Python
Iterating by Index of Sequences
Output: Hello Python Hello Python Hello Python
Output: Current Letter : C
Syntax of User defined Functions
Types of User defined functions
Two. Functions with default arguments
Three. Keyword argument functions
Output: shakshi is twenty-one years old.
Four. Variable length argument functions
Five. Functions with Return value
Pass by reference or Pass by value in Python
Example: Pass by reference (Immutable data types)
Example: Pass by Reference (Mutable Data Types) function definition