Python Lab Manual - Problem Analysis
with Pseudocode & Flowchart
Problem Statement:
Write a Python program to find the sum of two numbers.
Problem Analysis:
Step Description
Input Get two numbers from user
Process Add the two numbers
Output Display the sum
Pseudocode:
START
READ number1
READ number2
sum ← number1 + number2
PRINT sum
END
Flowchart:
Draw flowchart with Start → Input → Process → Output → End.
Tools to draw: Lucidchart / Draw.io / Google Docs Drawing / Manual Drawing
Python Program:
# Program to add two numbers
number1 = int(input("Enter first number: "))
number2 = int(input("Enter second number: "))
sum = number1 + number2
print("The sum is:", sum)
Tools Used:
1. Python Online Compiler (Programiz / Replit)
2. Lucidchart / Draw.io for Flowchart
3. VS Code / Thonny for running locally