Monday, June 19, 2017

My son is here for Father's day

Last weekend on June 17th, my son was born, just in time for the Father's day. He is 8 pounds 9 ounces (much heavier than my daughter was born). 

My son looks like a thinker in the future. 

 

class newBaby:
    def __init__(self, name, weight):
        self.name = name
        self.weight = weight
        
    def sayHello(self):
        print('Hello world, I am %s'%self.name)
        
    def showWeight(self):
        print('I am %.1f pounds'%self.weight)
        
baby2 = newBaby('Fanqi', 9)
baby2.sayHello()
baby2.showWeight()
Hello world, I am Fanqi
I am 9.0 pounds

No comments:

Post a Comment