Skip to content

Commit b96fd1d

Browse files
authored
Add files via upload
1 parent 0ed643e commit b96fd1d

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

python/10_991.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
class College:
2+
your_name = "Ronit"
3+
college_name = "ACE"
4+
language = "Python"
5+
fees = 110001
6+
# your_name = input("Enter your name : ")
7+
# name = input("Enter the name of the college : ")
8+
# language = input("Enter the language used most in your college : ")
9+
# fees = int(input("Enter the semester wise fees of your college : "))
10+
11+
def greet(grt):
12+
print(f"Good morning {grt.your_name}")
13+
14+
def getInfo(info):
15+
print(f"The Name if the college is {info.college_name}.The Enviormental language in the college is {info.language} and The semester wise fees of the college is {info.fees}")
16+
17+
def __init__(greet):
18+
print("Thank You")
19+
20+
@staticmethod
21+
def you():
22+
print("hi")
23+
24+
information = College()
25+
#information.language = "java"
26+
information.greet()
27+
information.getInfo()

python/10_chapter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Employee:
2+
language = "python"
3+
salary = 12000000
4+
def getInfo(self):
5+
print(f"The language is {self.language}. The salary is {self.salary}")
6+
7+
ronit = Employee()
8+
ronit.language = "java" #This is an instance attribute
9+
ronit.getInfo()
10+
#Employee.getInfo(ronit)

0 commit comments

Comments
 (0)