Python Forum
Class code problem from CS Dojo YouTube
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class code problem from CS Dojo YouTube
#3
https://www.youtube.com/watch?v=wfcWRAxRVBA&t=45s

I typed in the code and didn't do the indents. I'm rather new to this forum, and didn't realize that using the python thingy wouldn't do the job. Anyway, when it's properly indented in Jupyter Notebook, it throws a Traceback.

Never mind. I didn't refresh a block of code after making changes, thus giving me the "name not found" error.
Reply


Messages In This Thread
Class code problem from CS Dojo YouTube - by Dixon - Feb-04-2020, 07:20 PM
RE: Class code problem from CS Dojo YouTube - by Dixon - Feb-04-2020, 09:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How does this code create a class? Pedroski55 6 689 Apr-21-2024, 06:15 AM
Last Post: Gribouillis
  class definition and problem with a method HerrAyas 2 384 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  Class function is not running at all even though it is clearly run in the code SheeppOSU 2 2,206 Sep-26-2020, 10:54 PM
Last Post: SheeppOSU
  Practice problem using lambda inside the class jagasrik 3 2,252 Sep-12-2020, 03:18 PM
Last Post: deanhystad
  [split] Python Class Problem astral_travel 12 5,161 Apr-29-2020, 07:13 PM
Last Post: michael1789
  Python Class Problem JPCrosby 2 2,350 Apr-28-2020, 06:18 PM
Last Post: buran
  Class problem duckduck23 2 2,077 Feb-10-2020, 08:52 PM
Last Post: jefsummers
  Class Problem scratchmyhead 3 2,398 Nov-19-2019, 08:28 AM
Last Post: Larz60+
  problem with class method AmirAB 3 3,470 Feb-13-2019, 01:51 AM
Last Post: AmirAB
  A problem with child class Truman 2 2,863 Jul-02-2018, 12:37 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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