Python Forum
Need Help to understand class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help to understand class
#5
Thanks to point problem. That was int .
I change it to string at then time of printing.

def myfunc(self):
    print("Hello my name is " +  self.name)
    print("My age is " + str(self.age))
    
Thanks
Reply


Messages In This Thread
Need Help to understand class - by Roshan - Jun-05-2018, 08:50 AM
RE: Need Help to understand class - by j.crater - Jun-05-2018, 08:56 AM
RE: Need Help to understand class - by buran - Jun-05-2018, 08:57 AM
RE: Need Help to understand class - by DeaD_EyE - Jun-05-2018, 09:01 AM
RE: Need Help to understand class - by Roshan - Jun-05-2018, 09:05 AM
RE: Need Help to understand class - by buran - Jun-05-2018, 09:07 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020