Assignment 1: Topic: Python
Assignment 1: Topic: Python
TOPIC : PYTHON
To write a Python program that accepts radius of a circle and prints its area.
CODES:-
r=int(input(‘Enter the radius: ‘)) area=3.14*r*r
RESULT-
CODES:-
p=int(input('Enter your Portuguese marks: '))
avg=(p+a+f+e+s)/5
CODES :-
area=b*h*0.5
CODES :-
one=n*1
two=n*2
three=n*3
four=n*4
five=n*5
print(n,'* 1 = ',one)
print(n,'* 2 = ',two)
print(n,'* 3 = ',three)
print(n,'* 4 = ',four)
print(n,'* 5 = ',five)
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
and a>c:
and b>c:
c>b:
add=a+b
c=='-':
sub=a-b
c=='*':
mul=a*b
c=='/':
div=a/b
multiplication is 410.0
CODES:-
a=str(input('Enter your alphabet: '))
is a vowel')
else:
print('It is a consonant')
a. Area of Circle
b. Area of Rectangle
c. Circumference of Circle
d. Area of Square
CODES :-
if a==1:
area=3.14*r*r
a==2:
arear=l*b
a==3:
areac=2*3.14*r
elif a==4: