Python Forum
what function should i use to tidy up my code (extreme beginner)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what function should i use to tidy up my code (extreme beginner)
#3
Buran, thanks a lot for your help, and apologies for the rookie mistake. Are you meaning where the class is it should be a dictionary, I had tried to use that before I learnt a little more on classes. Since a dictionary can only have a key and a value, should I be looking to use nested dict maybe or lists within dict?

Sorry again, possibly trying to run before I can walk, but believe having a project from the get go that is personal to my interests will help me enjoy to learning side of coding more and keep motivation intact.
Reply


Messages In This Thread
RE: what function should i use to tidy up my code (extreme beginner) - by scraig0117 - Dec-16-2019, 02:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner: Code not work when longer list raiviscoding 2 952 May-19-2023, 11:19 AM
Last Post: deanhystad
  Putting code into a function breaks its functionality, though the code is identical! PCesarano 1 2,088 Apr-05-2021, 05:40 PM
Last Post: deanhystad
  Code not reading http link from .txt file (Beginner level) plarrip 3 2,533 Dec-17-2020, 11:33 PM
Last Post: bowlofred
  Beginner: I need help understanding few lines of a code. hop_090 1 1,765 Sep-07-2020, 04:02 PM
Last Post: Larz60+
  Beginner Code, how to print something after a number of turns (guessing game) QTPi 4 2,943 Jun-18-2020, 04:59 PM
Last Post: QTPi
  A beginner code... TheDude 7 3,438 Jun-18-2020, 05:39 AM
Last Post: TheDude
  [Beginner] Code is not producing desired result fakej171 2 2,544 Mar-21-2020, 10:26 AM
Last Post: buran
  Beginner at Python. Trying to count certain integer from random string of code kiaspelleditwrong 3 2,539 Oct-14-2019, 10:40 AM
Last Post: perfringo
  Beginner trying to code in python RA0211 1 1,915 Sep-26-2019, 11:10 AM
Last Post: emryscass
  Beginner problem, replace function with for loop Motley_Cow 9 4,889 Sep-13-2019, 06:24 AM
Last Post: Motley_Cow

Forum Jump:

User Panel Messages

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