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

Class11 Python Programs Updated

The document contains two Python programs suitable for Class 11 level. The first program prints the multiplication table for a user-defined number, while the second program calculates either the area or perimeter of a circle based on user input. Both programs utilize basic input and output functions along with mathematical operations.

Uploaded by

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

Class11 Python Programs Updated

The document contains two Python programs suitable for Class 11 level. The first program prints the multiplication table for a user-defined number, while the second program calculates either the area or perimeter of a circle based on user input. Both programs utilize basic input and output functions along with mathematical operations.

Uploaded by

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

Python Programs (Class 11 Level)

1. Program to print a table of user's choice


num = int(input("Enter a number to print its multiplication table: "))

print(f"\nMultiplication Table of {num}:\n")

for i in range(1, 11):


print(f"{num} x {i} = {num * i}")

2. Program to calculate area or perimeter of a circle


import math

print("Menu:")
print("1. Calculate Area of Circle")
print("2. Calculate Perimeter of Circle")

choice = int(input("Enter your choice (1 or 2): "))


radius = float(input("Enter the radius of the circle: "))

if choice == 1:
area = math.pi * radius * radius
print("Radius:", radius)
print("Area of the circle is:", area)
elif choice == 2:
perimeter = 2 * math.pi * radius
print("Radius:", radius)
print("Perimeter of the circle is:", perimeter)
else:
print("Invalid choice. Please enter 1 or 2.")

You might also like