Subject: Basic Python Program
1. Objective
The objective of this report is to understand the fundamentals of Python
programming and to develop a simple program that demonstrates basic concepts
such as variables, input/output operations, and arithmetic calculations.
2. Introduction
Python is a high-level, interpreted programming language known for its simplicity and
readability. It is widely used in web development, data analysis, artificial intelligence, and
automation.
3. Description
In this report, a basic Python program is developed that takes input from the user and
performs a simple arithmetic operation. The program demonstrates:
• Taking input from the user
• Using variables
• Performing calculations
• Displaying output
4. Implementation / Code
# Basic Python Program: Addition of Two Numbers
# Taking input from user
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
# Performing addition
sum_result = num1 + num2
# Displaying result
print("The sum is:", sum_result)
5. Input / Output
Sample Input:
Enter first number: 10
Enter Second
number:20
Sample Output:
The sum is: 30.0
6. Conclusion
This program helps to understand the basic structure of Python programming
including input, processing, and output.