Week 1: Introduction to Programming &
Python Fundamentals
Hilal Khan
Center for Artificial Intelligence & Emerging Technologies
1
,What We’ll Cover This Week
• Introduction to Programming - Understanding how computers work
• Why Python? - Exploring Python’s advantages and applications
• Setting Up Python - Installation and development environment
• Your First Python Program - Hello World and basic syntax
• Variables and Data Types - Storing and working with data
• Python Operators - Arithmetic, comparison, and logical operators
• Type Conversion (Casting) - Converting between data types
• Getting User Input - Making programs interactive
• Basic Input/Output - Formatting and displaying information
• Conditional Statements - Making decisions in code
• Loops - For loops, while loops, and loop control
• Putting It All Together - Complete examples and practice
2
,Introduction to Programming
, What is Programming?
• Programming is the process of creating instructions for computers
• It’s like writing a recipe - step by step instructions
• Computers are very literal - they do exactly what you tell them
• Programs solve problems and automate tasks
Real World Analogy
Think of programming like giving directions to a friend:
• Be specific and clear
• Break down complex tasks into simple steps
• Handle different scenarios (what if?)
3