Facebook
From kush, 4 Years ago, written in Plain Text.
This paste is a reply to 8 from kush - view diff
Embed
Download Paste or View Raw
Hits: 348
  1. class Person:
  2.     def __init__(self,name, age):
  3.         self.__name = name
  4.         self.__age = age
  5.     def __str__(self):
  6.         return(self.__name+" is "+str(self.__age)+" years old")
  7.     def __eq__(self,other):
  8.         if((self.__name)==(other.__name) and (self.__age)==(other.__age)):
  9.             return(1)
  10.         else:
  11.             return(0)
  12.  

Replies to 9 rss

Title Name Language When
10 kush text 4 Years ago.