Python Programming
Computer ScienceChapter 1 — Introduction to Python
Lesson 1.4 : First Python Program
Reading & Interactive Lesson
First Python Program
Reading Material & Notes
First Python Program
Writing a simple program is a good way to understand Python syntax and program execution.
Hello World Program
print("Hello, World!")
Output
Hello, World!
Displaying Variables
name = "Python"
version = 3
print("Language:", name)
print("Version:", version)
Taking User Input
name = input("Enter your name: ")
print("Hello", name)
Simple Calculation
a = 10
b = 20
sum_value = a + b
print("Sum =", sum_value)
Key Points
- Python programs can be very concise.
- The print() function is used to display output.
- The input() function is used to accept user input.
Course Curriculum
10 Chapters • 50 Lessons
Chapter 1 — Introduction to Python
5 Lessons
Chapter 2 — Variables, Data Types and Operators
5 Lessons
Chapter 3 — Conditional Statements
5 Lessons
Chapter 4 — Loops and Iteration
5 Lessons
Chapter 5 — Functions and Modules
5 Lessons
Chapter 6 — Lists, Tuples, Sets and Dictionaries
5 Lessons
Chapter 7 — Strings and File Handling
5 Lessons
Chapter 8 — Exception Handling
5 Lessons
Chapter 9 — Object-Oriented Programming
5 Lessons
Chapter 10 — Python Projects and Applications
5 Lessons