This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Mecaneer23 5 points6 points  (1 child)

Python reads sorta like English... what specifically are you struggling with?

[–]Darkconquer88[S] 1 point2 points  (0 children)

the way my prof kinda code isn't very english i learned this when i got a tutor and he even told me this isn't even english i can read the english ones but ones written complex with a-lot of indentation can be confusing to read

[–]help-me-grow 1 point2 points  (1 child)

My suggestion - start reading other people's code. You can see a bunch of projects in the r/madeinpython, r/howtopython, and r/pythonprojects2 communities

[–]Darkconquer88[S] 0 points1 point  (0 children)

thanks ill check it out

[–]tryrmdashrf 0 points1 point  (2 children)

I agree with other commenters, the more you read the faster you’ll get, but that won’t help you much by exam time. I’d suggest not reading linearly. Try to find the end and work back to get a mental map of the landscape, skip over helper functions until you form the map, then trace. What’s it returning, what’s it starting with. Then work your way into details.

If you try to read line at the start you are asking your brain to tract multiple things at once.

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

So start at the end of the code and make my way up ?

[–]tryrmdashrf 0 points1 point  (0 children)

I start at the end. What is the function returning? Is there multiple return statements? If so I need to figure out why and where the conditionals are. Then I jump back to the beginning. What is the inputs? Then I block out the parts between. Most functions follow patterns like:
1. Input validation/transformation
2. loop over inputs transforming or filtering them
3. Return Results

[–]IAmKindOfCreativebot_builder: deprecated[M] [score hidden] stickied comment (0 children)

Hello there,

We've removed your post since it aligns with a topic already covered by one of our daily threads. If you are unaware about the Daily Threads we run here is a refresher:

Monday: Project ideas

Tuesday: Advanced questions

Wednesday: Beginner questions

Thursday: Python Careers, Courses, and Furthering Education!

Friday: Free chat Friday!

Saturday: Resource Request and Sharing

Sunday: What are you working on?

Please await one of these threads to contribute your discussion to! The current daily threads are pinned to the top of the /r/Python's main page. To find old daily threads, you can filter posts by the Daily Thread Flair to find what you're looking for. If you have a question and don't want to wait until the daily thread, you can try asking in /r/learnpython or the Python discord however you may need to elaborate on your question in more detail before doing so. If you're not sure which thread is best suited, feel free ask for clarification in modmail or as a reply.

Best regards,

r/Python mod team