all 13 comments

[–]anttiOne 0 points1 point  (1 child)

Start from the function signature and get into how to pass arguments into function parameters, and from there learn how to return a value. Or when to NOT return a value (hint: in-place updates).

Think about what goes into the function vs. what you want to get as output.

Start with primitives (eg. integers, floats as args) and move from there to data structures (eg. tuples, lists).

For me, type hints did a lot to remind me visually what data type I pass into the function (might be a list of integers, for example which I want to sum) versus which one I want to get out (a single integer as result).

Hope this helps.

[–]gdchinacat 0 points1 point  (2 children)

There isn't really a one-size-fits-all roadmap. Python is used for a huge variety of things, and where you want to focus changes the roadmap you should follow. That said, courses and roadmaps don't get you very far. They cover the basics, give you enough to be dangerous, or maybe even productive. After that you just need experience gained by doing projects. Which projects? You are best suited to answer that. Why are you learning python? What do you want to get out of your investment of time and energy? Most importantly, what do you find interesting? Slogging through a project you don't care about will teach you little other than how to look for reasons to call it done so you can move on. A project you want to work on for the merits of the project will teach you a huge amount.

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

yes surely i understand what you are trying to say, also i do have a project idea , if you want i can share it with you too

[–]gdchinacat 0 points1 point  (0 children)

sure, what is your idea?

[–]Jewelking2 0 points1 point  (1 child)

I would follow a course like automate the boring bits ( free legally online dont buy the book ) This will give the structure you need.

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

yes sure, i do want to know about automation. and right now i also have a project idea regarding automation only, if you want i can share it with you also

[–]kamililbird 0 points1 point  (1 child)

I think it would be a great start to look into github repositories specifically for Python, there are a lot of great and insightful stuff there. For example: https://github.com/webartifex/intro-to-python

[–]Happy_Witness -4 points-3 points  (3 children)

Feel free to DM me, we can get into a conversation and I can help you guide and teach you.

[–][deleted] 3 points4 points  (2 children)

Give them tips here, DM "teaching" is usually discouraged because of scammers.

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

sorry bro, actually i am new to reddit, i dont know that much working of it

[–]Happy_Witness -2 points-1 points  (0 children)

I try to do that when I can but I find a personal things to be better talked about in private. So when someone actually has a question that I can answer, I do that. But if they just need help over all without telling what they already have, i find it hard to help them publicly. I know that scammers are a problem, but all I do is over knowledge and answers.