CLTP Python
Introduction to Programming Concepts
• Your first step into the world of technology!
• Presented by: [Reshmi Pradeep]
• CLTP - Computer Language Training Point
• 📞 9747135574
Presented by: Reshmi Pradeep
CLTP
CLTP Python
What is a Computer?
• - A computer is an electronic device that can:
• - Accept data (input)
• - Process data
• - Store data
• - Give output
• - Examples: Desktop, Laptop, Mobile Phone,
CLTP
ATM
CLTP Python
Basic Components of a Computer
• 1. Input Devices – Keyboard, Mouse, Scanner
• 2. Processing Unit – CPU (Central Processing
Unit)
• 3. Storage – Hard Disk, SSD, Pen Drive
• 4. Output Devices – Monitor, Printer, Speaker
CLTP
CLTP Python
What is a Computer Language?
• - A computer language is a way to
communicate with a computer.
• - It uses symbols, keywords, and rules to write
instructions.
• - These instructions tell the computer what to
do.
CLTP
CLTP Python
Types of Computer Languages
• 1. Machine Language – 0s and 1s (Binary)
• 2. Assembly Language – Uses short codes
(MOV, ADD)
• 3. High-Level Language – Python, C, Java
• - Easy to learn and use
• - Closer to human language
CLTP
CLTP Python
What is an Algorithm?
• - An algorithm is a step-by-step solution to a
problem.
• - Like a recipe in cooking – clear and ordered steps.
• Example:
• 1. Start
• 2. Input two numbers
• 3. Add them
• 4. Display result CLTP
• 5. Stop
CLTP Python
What is a Flowchart?
• - A flowchart is a diagram that shows steps of
an algorithm.
• - It uses symbols to represent actions.
CLTP
CLTP Python
Summary
• - Computers follow instructions.
• - We give instructions using programming
languages.
• - Algorithms are written plans.
• - Flowcharts are visual steps.
CLTP
CLTP Python
Introduction to Python
• - Python is a high-level, interpreted
programming language.
• - Created by Guido van Rossum in 1991.
• - Known for:
• - Simple syntax
• - Readability
CLTP
• - Powerful libraries
CLTP Python
Why Learn Python?
• - Easy to learn and beginner-friendly
• - Used in web, AI, data science, and
automation
• - Large community support
• - Great for school projects and apps
CLTP
CLTP Python
Your First Python Program
• Code:
• print("Hello, World!")
• Output:
• Hello, World!
CLTP
• 📝 One line to display a message!
CLTP Python
Python Syntax Rules
• - Write each statement on a new line
• - No need for semicolons
• - Use indentation (spaces) for blocks
• - Python is case-sensitive
CLTP
CLTP Python
Simple Python Program – Add Two Numbers
• Code:
• a=5
• b=3
• sum = a + b
• print("The sum is", sum)
CLTP
• Output:
• The sum is 8
CLTP Python
How It Works
• 1. a = 5 → Stores 5 in variable a
• 2. b = 3 → Stores 3 in variable b
• 3. sum = a + b → Adds a and b
• 4. print(...) → Displays result
CLTP
CLTP Python
What's Next?
• - Variables and data types
• - Input from the user
• - More practice programs
CLTP
Variables
• Variables are containers for storing
data values.
• Creating Variables
– Python has no command for declaring a variable.
– A variable is created the moment you first assign a
value to it.
example
x=4 # x is of type int
x = "Sally" # x is now of type str
print(x)