-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmy_first_opps_code.py
More file actions
46 lines (33 loc) · 883 Bytes
/
my_first_opps_code.py
File metadata and controls
46 lines (33 loc) · 883 Bytes
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
class Student:
college_name= "pratibha college"
def __init__(self,fullname,maths,chemistry,physics):
self.name= fullname
self.maths= maths
self.chemistry=chemistry
self.physics=physics
print("marks of student in the class")
def average(self):
print("Student Marks," , self.name ,self.maths, self.chemistry,self.physics)
print("average marks of Student, ", self.name, (self.maths+self.chemistry+self.physics)/3)
s1=Student("Yash",99,92,93)
s2=Student("Vikas",69,45,76)
s3=Student("Akash",95,83,88)
<<<<<<< Updated upstream
<<<<<<< Updated upstream
<<<<<<< Updated upstream
s3.average()
=======
s1.average()
s3.average()
s2.average()
>>>>>>> Stashed changes
=======
s1.average()
s3.average()
s2.average()
>>>>>>> Stashed changes
=======
s1.average()
s3.average()
s2.average()
>>>>>>> Stashed changes