CS02: Introduction to Python Programming
Welcome to CS02: Introduction to Python Programming! This course is designed to introduce you to the fundamentals of Python programming. Whether you are a complete beginner or looking to refresh your skills, this course will provide a solid foundation in Python.
By the end of this course, you will be able to:
- Understand the basic concepts and syntax of Python.
- Write and execute Python programs to solve problems.
- Utilize Python's built-in data structures, including lists, dictionaries, tuples, and sets.
- Implement control flow using conditionals and loops.
- Define and call functions, as well as handle exceptions.
- Work with files and manipulate string data.
- Understand the principles of object-oriented programming in Python.
This course is suitable for:
- Beginners with no prior programming experience.
- Students looking to learn Python for academic purposes.
- Professionals seeking to enhance their programming skills for career development.
The course is structured into 16 lectures covering a wide range of topics:
-
Installation of Python
- Setting up the Python environment.
- Introduction to IDEs (Integrated Development Environments).
-
Why Python
- Overview of Python’s features and advantages.
-
Variables, Expressions, and Statements
- Understanding data types, variables, and basic expressions.
-
Conditional Execution
- Using
if
,elif
, andelse
statements for decision-making.
- Using
-
Functions
- Defining and calling functions, understanding scope.
-
Loops and Iterations
- Using
for
andwhile
loops for repetitive tasks.
- Using
-
Strings
- Manipulating and processing string data.
-
File Handling
- Reading from and writing to files. Futher operations regarding the files
-
Lists
- Working with lists and their methods.
-
Dictionaries
- Understanding dictionaries and key-value pairs.
-
Tuples
- Working with immutable sequences.
-
Sets
- Understanding and using sets for unique collections.
-
Exception Handling
- Managing errors and exceptions in code.
-
Threads
- Introduction to threads in Python.
-
Regular Expressions
- Using regex for pattern matching and text manipulation.
-
Object Oriented Programming
- Understanding the principles of OOP in Python.
- Class and Objects, 4 Pillars of OOPS [Inheritance, Polymorphism, Encapsulation, Abstraction]
-
Some Important Topics
- Object as an argument, duck typing, Walrus operator, Higher Order Functions, Lambda functions,
sort
,map
,reduce
,filter
, Dictionary and List Comprehension, Zip Functions,if __name__ = '__main__'
.
- Recitation 01: Important Questions on Python
- A session focused on discussing important concepts and answering questions.
- Python: Install the latest version from python.org.
- IDE: Recommended IDEs include PyCharm and Visual Studio Code.
- Books:
- Automate the Boring Stuff with Python by Al Sweigart
- Python Crash Course by Eric Matthes
- Introduction to Computation and Programming Using Python, second edition by John V. Guttag
- Online Resources:
We are excited to embark on this journey of learning Python with you! This course will equip you with the skills needed to tackle programming challenges and open doors to various opportunities in the tech industry.
If you have any questions or need assistance, feel free to reach out during office hours or through the course discussion forum or email me at [email protected].
Happy Coding!