Facebook
From kush, 4 Years ago, written in Plain Text.
This paste is a reply to 9 from kush - go back
Embed
Viewing differences between 9 and 10
from Address import Address
class Person:
    def __init__(self,name, age):
age, address):
        self.__name = name
        self.__age = age
        self.__address = address
    def __str__(self):
        return(self.__name+" is a person who is "+ self.__age+" years old and lives in the following address : "+str(self.__age)+" years old")
    
__address))
        
       --------------------------------------------------------------------------------------------------------- 
        
        
        class Address:
    
def __eq__(self,other):
        if((self.__name)==(other.__name) and (self.__age)==(other.__age)):
            return(1)
        else:
            return(0)
__init__(self,street, city, state):
        self.__street = street
        self.__city = city
        self.__state = state
    def __str__(self):
        return(self.__street +" , "+self.__city+" , "+self.__state)

Replies to 10 rss

Title Name Language When
file handling 10 kush text 4 Years ago.