Python Forum
OOP hellp (simple class person)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OOP hellp (simple class person)
#5
(Jul-14-2020, 03:28 PM)stullis Wrote: Two problems:

  1. There's a typo in the __init__() function signature. You have __init_ instead of __init__. Missing a trailing underscore.
  2. When you instantiate p1, you'll need two arguments for Person().

Thanks i will look in to this. Yep spelling mistakes hapins for me more often then i want them, using a screenreader when you are coding has some cons and that one is for sure...
Reply


Messages In This Thread
OOP hellp (simple class person) - by onit - Jul-14-2020, 02:23 PM
RE: OOP hellp (simple class person) - by stullis - Jul-14-2020, 03:28 PM
RE: OOP hellp (simple class person) - by onit - Jul-14-2020, 06:54 PM
RE: OOP hellp (simple class person) - by menator01 - Jul-14-2020, 03:41 PM
RE: OOP hellp (simple class person) - by Yoriz - Jul-14-2020, 03:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A file for every person of a list Emmanouil 3 3,312 Aug-29-2019, 07:19 AM
Last Post: perfringo
  Discord Bot - If Person Mentions Role badmuchachob 0 2,727 Jan-30-2019, 06:39 PM
Last Post: badmuchachob
  Class Object hellp Dneal620 1 2,702 Dec-18-2018, 12:19 AM
Last Post: micseydel
  Installing Homebrew on my mac; non computer-savvy person duongtn34 1 2,536 Oct-23-2018, 09:11 AM
Last Post: Larz60+
  Why Person() takes no arguments dianefly 3 32,343 Oct-22-2018, 04:15 PM
Last Post: dianefly
  Installing Homebrew on my mac; non computer-savvy person hohen036 3 4,723 Oct-12-2018, 11:02 PM
Last Post: Larz60+
  Can you tell me where this person got the version of Python that he's using? nelsonkane 8 6,795 Mar-11-2018, 11:10 AM
Last Post: gptura
  problem with simple class code diegoraffo 5 4,920 Jan-27-2018, 02:31 AM
Last Post: ka06059
  Troubleshooting simple script and printing class objects Drone4four 11 10,742 Dec-16-2017, 05:12 AM
Last Post: Drone4four

Forum Jump:

User Panel Messages

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