-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathop.py
More file actions
48 lines (42 loc) · 1 KB
/
op.py
File metadata and controls
48 lines (42 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'''class cse:
def __init__(self,name,rno):
self.n=name
self.roolno=rno
print("this is constructor")
print(name,rno)
def fun(self):
print("this is function")
o=cse("siri",40)
s1=cse("t",30)
s2=cse("v",50)
o.fun()
cse.fun(o)'''
'''class circle:
def __init__(self,radius):
self.r=radius
def printing(self):
print(3.142*self.r*self.r)
class rectangle:
def __init__(self,length,breadth):
self.l=length
self.b=breadth
def printing(self):
print(self.l*self.b)
l=float(input())
b=float(input())
r=float(input())
o=circle(r)
o1=rectangle(l,b)
o.printing()
o1.printing()'''
'''class royalenfield:
def __init__(self,name,color,mileage):
self.n=name
self.c=color
self.m=mileage
r1=royalenfield("xyz","black",123)
r2=royalenfield("xut","black",456)
r3=royalenfield("gyu","red",120)
print(r1.n,r1.c,r1.m)
print(r2.n,r2.c,r2.m)
print(r3.n,r3.c,r3.m)'''