Welcome to DataDrift with Us! This repository documents our journey through learning Python from the basics. Below is a summary of what we’ve covered so far.
- Introduction to Python
- Using Google Colab
- GitHub Basics
- Python Syntax
- Comments (Single-line and Multi-line)
- Variables
- Data Types
- F-Strings
- Taking Input using
input()
- Display Output with
print()
- Checking Data Types using
type()
- Typecasting: Converting between
str
,int
, andfloat
- Operators:
+
,-
,*
,/
,%
,//
- Conditional Statements:
if
,else
,elif
- Logical Operators:
and
,or
,not
- String Indexing and Slicing
- Slice Syntax:
[start:end:step]
for
Loopswhile
Loops- Loop Control Statements:
break
– exit the loopcontinue
– skip to the next iterationpass
– do nothing (placeholder)
- Definition of a Function
- Function Syntax
- Calling a Function
- Function Parameters / Arguments
- Return Statement
- Scope and Lifetime of Variables
- Local and Global Variables
- User-defined Functions
- Default Arguments
- Keyword Arguments
- Variable-length Arguments:
*args
and**kwargs
- Creating and using multiple functions
- Lists and dictionaries to manage data
- Building a simple console-based menu
- User interaction through loops and input
- Practicing modular and reusable code
- Introduction to Lists and Tuples
- List Syntax and Examples
- Accessing, Modifying, and Deleting Elements
- Common List Methods:
append()
,insert()
,extend()
,remove()
,pop()
,sort()
,reverse()
,copy()
- Looping through Lists
- List Comprehensions
- Tuple Syntax and Examples
- Tuple Immutability
- Tuple Methods:
count()
,index()
- List ↔ Tuple Conversion
- List vs Tuple Comparison
- Intermediate Techniques: Slicing, Unpacking, Nested Lists
- Practice Exercises