Python Forum
newbie question - can't make code work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
newbie question - can't make code work
#3
Hi deanhystad.

Thanks so much for your detailed explanation. It turns on that tutor had used the following syntax:

class Mammal(Animal): ...

But the three dots after the colon were really tight together and the IDE he used displayed them in a very light grey colour.

I wasn't aware of this notation until now which as i understand it is used as an alternative to

class Mammal(Animal):
pass

Thanks again for taking the time to provide a great explanation.

T
Reply


Messages In This Thread
RE: newbie question - can't make code work - by tronic72 - Oct-22-2023, 09:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I can't for the life of me get this basic If statement code to work CandleType1a 8 447 May-21-2024, 03:58 PM
Last Post: CandleType1a
  How is pandas modifying all rows in an assignment - python-newbie question markm74 1 813 Nov-28-2023, 10:36 PM
Last Post: deanhystad
  hi need help to make this code work correctly atulkul1985 5 968 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  Newbie question about switching between files - Python/Pycharm Busby222 3 734 Oct-15-2023, 03:16 PM
Last Post: deanhystad
  Cleaning my code to make it more efficient BSDevo 13 1,644 Sep-27-2023, 10:39 PM
Last Post: BSDevo
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,506 May-22-2023, 10:39 PM
Last Post: ICanIBB
  Beginner: Code not work when longer list raiviscoding 2 951 May-19-2023, 11:19 AM
Last Post: deanhystad
  Newbie.... run for cover. OpenCV question Stevolution2023 2 1,073 Apr-12-2023, 12:57 PM
Last Post: Stevolution2023
  how to make bot that sends instagram auto password reset code kraixx 2 1,547 Mar-04-2023, 09:59 PM
Last Post: jefsummers
  numpy newbie question bcwilly_ca 4 1,329 Feb-10-2023, 05:55 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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