Skip to content

Commit

Permalink
3주차 과제
Browse files Browse the repository at this point in the history
  • Loading branch information
mk9617 committed May 8, 2021
1 parent a7a56b3 commit 6b02806
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
25 changes: 25 additions & 0 deletions abc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class player:

def __init__(self,name,age,team,num):
self.name = name
self.age = age
self.team = team
self.num = num


def info(self):
print(f'이름: {self.name}')
print(f'나이: {self.age}')
print(f'팀: {self.team}')
print(f'등번호:{self.num}')
print()


player1 = player('김상수',32,'삼성 라이온즈',7)
player2 = player('이대호',40,'롯데 자이언츠',10)
player3 = player('소형준',21,'KT WIZ',30)

player1.info()
player2.info()
player3.info()

25 changes: 0 additions & 25 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,25 +0,0 @@
class player:

def __init__(self,name,age,team,num):
self.name = name
self.age = age
self.team = team
self.num = num


def info(self):
print(f'이름: {self.name}')
print(f'나이: {self.age}')
print(f'팀: {self.team}')
print(f'등번호:{self.num}')
print()


player1 = player('김상수',32,'삼성 라이온즈',7)
player2 = player('이대호',40,'롯데 자이언츠',10)
player3 = player('소형준',21,'KT WIZ',30)

player1.info()
player2.info()
player3.info()

0 comments on commit 6b02806

Please sign in to comment.