0% found this document useful (0 votes)
10 views1 page

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)
10 views1 page

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy