0% found this document useful (0 votes)
4 views

Class 11 activity 2

The document contains a Python script that prompts the user to input two numbers and calculates their sum. It also asks for marks in five subjects and computes the average of those marks. The results are printed to the console.

Uploaded by

????
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)
4 views

Class 11 activity 2

The document contains a Python script that prompts the user to input two numbers and calculates their sum. It also asks for marks in five subjects and computes the average of those marks. The results are printed to the console.

Uploaded by

????
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/ 1

Sum of numbers and Average of test results

A=int(input("enter first number"))

B=int(input("enter second number"))

print("Thus, the sum of the two numbers is", A+B)

A=int(input("enter your English marks"))

B=int(input("enter your Maths marks"))

C=int(input("enter your Hindi/Sanskrit/German/French marks"))

D=int(input("enter your SST marks"))

E=int(input("enter your Science marks"))

print("Thus, your average marks is", (A+B+C+D+E)/5)

You might also like