Facebook
From kush, 4 Years ago, written in Plain Text.
This paste is a reply to 9 from kush - view diff
Embed
Download Paste or View Raw
Hits: 347
  1. from Address import Address
  2. class Person:
  3.     def __init__(self,name, age, address):
  4.         self.__name = name
  5.         self.__age = age
  6.         self.__address = address
  7.     def __str__(self):
  8.         return(self.__name+" is a person who is "+ self.__age+" years old and lives in the following address : "+str(self.__address))
  9.        
  10.        ---------------------------------------------------------------------------------------------------------
  11.        
  12.        
  13.         class Address:
  14.     def __init__(self,street, city, state):
  15.         self.__street = street
  16.         self.__city = city
  17.         self.__state = state
  18.     def __str__(self):
  19.         return(self.__street +" , "+self.__city+" , "+self.__state)
  20.  

Replies to 10 rss

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