Commit e81aab33 by BellCodeEditor

save project

parent 22354288
Showing with 19 additions and 0 deletions
class GuestCharacters:
def __init__(self,name,age,gender,level,firstname,nameage):
self.address='Guest'
self.name=name
self.age=age
self.gender=gender
self.level=level
self.firstname=firstname
self.nameage=nameage
def time(self,int):
self.age=self.age+int
if self.age<=self.nameage:
self.name=self.firstname
self.level='Unknown'
print(self.name,str(self.age),self.gender,self.level)
Atna=GuestCharacters('Atna',18,'Female','*','Lorea',10)
Betty=GuestCharacters('Betty',17,'Female','*','None',12)
Atna.time(-15)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment