Python Forum
Pressing issue for these tasks - 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: Pressing issue for these tasks (/thread-21789.html)



Pressing issue for these tasks - unknown_bla_bla - Oct-14-2019

Hi, I’m a newcomer of Python and still I’m in learning process. However, I bother myself with two tasks from Python because I even don’t know how to start, not to mention how to solve them. Although lecturers don’t want to help in any way, I am forced to look for a help on forum. So please if you know how to solve this let me know. Thanks in advance!

[Image: P6FBPKq]


RE: Pressing issue for these tasks - buran - Oct-14-2019

This is not gonna work like this. What have you tried? We are glad to help, but we are not going to do your homework for you.
Post your assignment (not image of it), post you code so far - in python tags, full traceback (if any) - in error tags and ask specific question(s).


RE: Pressing issue for these tasks - jefsummers - Oct-14-2019

Start by breaking the two assignments into a series of tasks, then tackle each task and post if you get stuck, including all your code and any errors you are getting.
In the first assignment you need to open the designated file, read each line, get the string between the tilde (~) and slash and store that string in a list. When done reading lines print the list.
For the second assignment you need to prompt the user for a file. Then in a try/except block open the file, read each line and print a line number along with the line from the file. The except block is where you print an error message if the file does not exist.
We won't do your homework for you, but will help when you get stuck. Post progress using Python tags and error messages


RE: Pressing issue for these tasks - unknown_bla_bla - Oct-14-2019

Ok, thanks for your assistance, I will try with abovementioned directions.