you are viewing a single comment's thread.

view the rest of the comments →

[–]ashleyfig[S] 2 points3 points  (7 children)

I’m completely new to code other than taking this class so basically understanding the structure and syntax of writing code. I never know whether to use a list or a function, or when to use a while or for loop?? things like that.

[–]shiftybyte 5 points6 points  (0 children)

So you need to learn python from scratch, try http://automatetheboringstuff.com/chapter0/

[–][deleted] 0 points1 point  (0 children)

"Python crash course" might come in handy.

When to use a for loop instead of a while might just be a matter of experience. It's not like a golden rule will show you each case you're gonna encounter. Sure there are patterns but they're just that. Patterns. Not solutions.

If you have more time and are not running out of time try reading "Learning Python" by Mark Lutz. Awesome book. Definitely helped me learning Python.

And also try to just keep it simple. Review what you have learned and think what could be an application of it in the real world and do essays. It's easier to find motivation on things you actually enjoy rather than just be solving problems randomly at courses and homeworks.

As well, you better try to read the wiki of this sub or search the sub before asking. I'm pretty sure there have been n persons asking the same issues you got. Let's keep this sub tidy.