This course aims to teach everyone the basics of programming computers using Python.
Expected Learning Outcomes
- Describe the basics of the Python programming language
- Install Python and write your first program
- Use variables to store, retrieve and calculate information
- Utilize core programming tools such as functions and loops
Course Contents
Introduction: History of Python, Need of Python Programming, Applications Basics of Python Programming, Running Python Scripts, Variables, Assignment, Keywords, Input-Output, Indentation.
Types, Operators, and Expressions: Types - Integers, Strings, Booleans; Operators- Arithmetic Operators, Comparison (Relational) Operators, Assignment Operators, Logical Operators, Bitwise Operators, Membership Operators, Identity Operators, Expressions and order of evaluations Control Flow- if, if-elif-else, for, while break, continue, pass
Data Structures Lists - Operations, Slicing, Methods; Tuples, Sets, Dictionaries, Sequences. Comprehensions.
Functions - Defining Functions, Calling Functions, Passing Arguments, Keyword Arguments, Default Arguments, Variable-length arguments, Anonymous Functions, Fruitful Functions(Function Returning Values), Scope of the Variables in a Function - Global and Local Variables.
Object Oriented Programming OOP in Python: Classes, 'self variable', Methods, Constructor Method, Inheritance, Overriding Methods, Data hiding,
Error and Exceptions: Difference between an error and Exception, Handling Exception, try-except block, Raising Exceptions, User Defined Exceptions