Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
6 views2 pages

Python Lab Manual Sum of Two Numbers

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Python Lab Manual Sum of Two Numbers

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like