Python Forum
New learner in Python, and need help on the term explanation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New learner in Python, and need help on the term explanation
#1
• Auto load the initial data given in pdf file
• You required to use an appropriate data structure to represent the initial data in-memory.
• It is not necessary to save the data to a file.


Need help on the first two points, and wondering why 'r', 'w', can't read the file Huh Huh

What is the meaning of the second point? do I need to create anything? Sick Sick
Reply
#2
need to see what the data in PDF looks like, but the second statement hints at figuring out the appropriate data structure to use for representing the data in python, list, dictionary, etc. and to then populate that structure.
Reply
#3
Sad 
   

Can anyone helps to explain how to load this txt file to Python, and use proper data structure to represent it in memory?

I tried a code like this:
   

but it gives me a empty list. Cry Cry
Reply
#4
Please don't create duplicate threads for the same problem.
Please don't paste pictures, see my signature for details on how to use BBcode to paste your code.
Larz60+ likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Some line code explanation Chrilo06 3 2,087 Feb-24-2022, 06:24 PM
Last Post: deanhystad
  XOR solution explanation needed. omm 7 3,196 Oct-26-2020, 06:30 AM
Last Post: omm
  While statement explanation alkhufu2 3 2,393 Sep-02-2020, 05:46 PM
Last Post: alkhufu2
  Output explanation AmanTripathi 2 2,803 Feb-14-2018, 03:03 PM
Last Post: AmanTripathi
  need help with some explanation vincelim99 2 3,645 Mar-24-2017, 04:12 PM
Last Post: nilamo
  how to write a code for term that can't begin or end with a stopword desul 3 3,793 Mar-18-2017, 03:42 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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