Phase 0: Python Programming for Data Science
Objective: The "Python Programming for Data Science" module is designed to equip learners with the essential programming skills required for data science.
-
Introduction to Python-1
- What is Python?
- What Python can do? Discuss examples such as connection to databases, Web development (Django, Flask), AI, and ML
- Comparison to Another Programming Language
- Comparison of Python with Excel and SQL
- Discuss Python Features such as being Easy to Learn and Use, etc.
- How Python is used for Data Science and Data analytics.
-
Introduction to Python-2
- Discuss Python basic syntaxes such as Print(), Indentation, Comments ( Single line and Multiline), Input(), and parameters like end, and sep, etc
- Introduction to Variables: What and Why
- Difference between variable, identifier, and keyword.
- Discuss how to declare, assign, and the rules for variables in Python.
- Explanation of different data types using example implementations such as string, integer, float, complex, Boolean, list, tuple, set, and Dictionary.
- How to print the type using type() function.
- Discuss type conversion using int(). float(), str(), complex(), list(), tuple(), dict(), bool(), set() . use practical implementation
-
Operators
- Definition of operators in programming.
- Overview of different types of operators.
- Detailed explanation of all types of operators. (Arithmetic, Comparison, Logical, Assignment, Identity, Membership)
- Discuss the order of Operations Followed in Python.
- Constraints in programming language.
-
Strings
- Discuss strings, common string operations, and methods such as Case Conversion, Slicing, Indexing, Replace, Formatting, Find, Count, Split, Strip, Concatenation, Comparison of strings, and other operations.
-
Data Structure-1
- Explanation of data structures and why we use them.
- Overview of Common data structures in Python.
- What lists are.
- Common functions length, min, max, and sum.
- Discuss common operations methods for Indexing, adding, removing, searching, counting, sorting, comparing, and reversing lists, etc.
- What list comprehensions are.
- What tuples are.
- Common functions length, min, max and sum.
- Discuss unpacking a tuple with practical implementation and common operations with practical implementation.
- Comparison of List and Tuple.
-
Data Structure-2
- What sets are.
- Discuss common operations and methods for adding, removing, and joining sets, use of membership operator, etc.
- Common functions length, min, max, and sum.
- Comparison of Lists, Tuples, Sets.
- What dictionaries are.
- Discuss the Nested dictionary and practical implementation.
- Discuss common operations and methods for accessing, Modifying, adding, updating, and removing dictionary contents, etc.
- Common functions length, min, max and sum.
- Comparison of Lists, Tuples, Sets, and Dictionaries.
-
Conditional Statements
- What control statements are.
- The importance of control statements.
- The types of control statements.
- Introduce the Conditional Statements ( if, Elif, and else) and their syntax.
- Practical example of if, elif, and the else statements to control program flow based on conditions.
- Discuss nested if, if-else, and if-elif-else statements with practical implementation.
- Discuss conditional statements with shorthand notations with practical implementation.
-
Looping Statements
- What looping statements are.
- Understanding what a for loop is.
- Discuss Syntax, Iterating over a list, Iterating over a string, Iterating over a range, Looping with enumerate, Else in For Loop with practical implementation.
- Discuss the for loop with conditional statements.
- Discuss List Comprehension, Generator Expression, and Nested for loop with practical implementation.
- Discuss what a while loop is.
- Syntax and example implementation of the while loop.
- Discuss while loop with conditional statements with practical implementation.
- Discuss shorthand and nested while loop with practical implementation
-
Control Transfer Statement
- Introduce what control transfer statements are.
- Discuss what a break statement is and its syntax.
- Usage in loops.
- How break statements work within a nested loop.
- Use of break statement to stop an infinite loop.
- Discuss examples of break statements.
- Discuss what a continue statement is and its syntax.
- How continue statement work within a nested loop.
- Discuss examples of continue statements.
- Discuss a pass statement and its syntax.
- Discuss how it works as a placeholder.
- Discuss examples of pass statements.
-
Functions
- What are functions, and why are they useful?
- Discuss user-defined function and built-in function and their difference.
- Syntax for defining functions in Python.
- Discuss function parameters and arguments.
- Returning values from functions: Using the return statement to return values from functions.
- Discuss the difference between print and return statements.
- Discuss scope and namespaces.
-
Exception Handling
-
Modules
-
File Handling, Overview of Library
-
Numpy - 1