Python Forum
New learner in Python, and need help on the term explanation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: New learner in Python, and need help on the term explanation (/thread-38451.html)



New learner in Python, and need help on the term explanation - BaicaiPy - Oct-14-2022

• 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


RE: New learner in Python, and need help on the term explanation - Larz60+ - Oct-14-2022

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.


Entry level need help on the explanation - BaicaiPy - Oct-15-2022

[attachment=2045]

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:
[attachment=2046]

but it gives me a empty list. Cry Cry


RE: New learner in Python, and need help on the term explanation - Yoriz - Oct-15-2022

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.