Python Forum
Using my REPL to bisect numbers and lists with classes (PyBite #181)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using my REPL to bisect numbers and lists with classes (PyBite #181)
#3
(Sep-24-2020, 01:35 PM)mlieqo Wrote: you need to create an instance of OrderedList:
>>> dummy = order.OrderedList()

@milego, what you have suggested is fairly similar to what I tried myself. To quote my original post:

>>> import order
>>> dummy = order.OrderedList
>>> 
My problem is that I'm missing the parentheses after OrderedList. Wall I guess when it comes to programming, attention to detail is essential. I will be more careful next time and ensure that I check to include parentheses.

Thanks mlieqo for your answer.
Reply


Messages In This Thread
RE: Using my REPL to bisect numbers and lists with classes (PyBite #181) - by Drone4four - Sep-24-2020, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help for use print in REPL jip31 10 4,310 Apr-30-2021, 03:52 PM
Last Post: bowlofred
  Sorting list of names using a lambda (PyBite #5) Drone4four 2 2,765 Oct-16-2020, 07:30 PM
Last Post: ndc85430
  Uses cases for list comprehension (encountered while doing PyBite #77) Drone4four 3 2,824 Sep-25-2020, 12:14 PM
Last Post: ndc85430
  Split dict of lists into smaller dicts of lists. pcs3rd 3 2,433 Sep-19-2020, 09:12 AM
Last Post: ibreeden
  Counting vowels in a string (PyBite #106) Drone4four 4 2,290 Jul-07-2020, 05:29 AM
Last Post: theknowshares
  Using matplotlib in Spyder v/s REPL peterjv26 2 2,593 Jul-04-2020, 10:57 AM
Last Post: snippsat
  Topic: “Filter numbers with a list comprehension” (PyBite #107) Drone4four 4 2,418 Jun-11-2020, 08:31 PM
Last Post: Drone4four
  Conditionals, while loops, continue, break (PyBite 102) Drone4four 2 3,007 Jun-04-2020, 12:08 PM
Last Post: Drone4four
  Do lists of classes take up more space in memory? DreamingInsanity 1 1,689 Apr-10-2020, 01:50 PM
Last Post: deanhystad
  Online python repl? Gribouillis 4 44,228 Apr-09-2020, 12:19 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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