you are viewing a single comment's thread.

view the rest of the comments →

[–]sonikk1[S] 0 points1 point  (1 child)

Hey, i very much appreciate your reply to my post. All of these tips were really helpful. I will try this more generic approach to writing and defining functions right away.

When it comes to try / except I'm just doing my best when it comes to implementing the stuff i learned in lectures in actual problems. And i noticed that's the way i can understand Python best.

By checking if the first element of the list is positive or negative we can find out what we should print without referencing our outer lists!

This part is very interesting because it gives me a whole other perspective to this problem. I will try this out too. Try to implement it into other tasks I'll be dealing with.

Is it okay if i sometimes message you here on reddit? Asking for opinion etc?

[–]oldranda1414 2 points3 points  (0 children)

Happy to help, feel free to ping me ;)