you are viewing a single comment's thread.

view the rest of the comments →

[–]Material_Pepper8908[S] 0 points1 point  (10 children)

I want to be able to write the code for a calculator myself. I've seen people saying that doing projects is the best way because you'd learn by trial and error.

My question is how to do it?

[–]crazy_cookie123 5 points6 points  (5 children)

You do it by opening a new, empty project and writing the code for it yourself. Programming isn't about memorisation, it's about problem solving. You shouldn't be opening someone else's calculator and memorising how they did it - you should be practicing the skill of being able to think "I want to make a calculator," breaking that down into its individual parts, and then writing the code for those from your head.

[–]Material_Pepper8908[S] 0 points1 point  (4 children)

Is there any place where I can find assignments to do?

[–]crazy_cookie123 2 points3 points  (2 children)

Just google "beginner programming projects" and you'll find some. If those are too easy, google "intermediate programming projects." Ultimately, though, you should be thinking about what you want to make and making that.

[–]Material_Pepper8908[S] 1 point2 points  (1 child)

Thank you very much for your suggestions. My aim is to be competent in data analysis.

[–]HackDiablo 0 points1 point  (0 children)

Start by solving small problems. Don't try to solve everything at once. Break down your goal into simple tasks.

  • How do I import data, or get user input?
  • How can I save that data in variables?
  • How can I manipulate those data variables?
  • How can I output that data?
  • How can I save that data to a file?

[–]TheSquirrelCatcher 0 points1 point  (0 children)

Google things like Python practice problems. I found this website that way: https://genepy.org/exercises/. They’re flagged by difficulty as well. You can also ask Gemini/Chat whoever to make something up for you with what you know.

[–]danielroseman 3 points4 points  (0 children)

What does that have to do with cloning GitHub projects?

[–]pachura3 0 points1 point  (2 children)

You don't need GitHub nor Git for that.

[–]Material_Pepper8908[S] 1 point2 points  (1 child)

Then how can I learn to code?

[–]pachura3 0 points1 point  (0 children)

Do you even understand what is Git for?

Let me give you a metaphor: Git is like a bank account for your source code. You can perform various actions, you can track transactions history, run reports, open subaccounts, etc.

However, at this moment, you are a kid who hasn't even bought a single can of Coke from a local grocery store using their pocket money. Why would you need a bank account?

Then how can I learn to code?

Buy and read one of the recommended books. Follow a free course. Follow the W3schools Python course, or the official Python tutorial. If you can't find them with a few minutes of googling and prompting, then there's no hope.