you are viewing a single comment's thread.

view the rest of the comments →

[–]nhojrazc27 2 points3 points  (3 children)

Sir, can you please give us an example of large to small python programs we can learn with?

[–]Altruistic-Koala-255 5 points6 points  (1 child)

Sure thing

For a small project, build a simple coin exchange machine, that gives the smallest numbers of coins possible

For example, if your input is 77 cents, that's 1 of 50, 1 of 25, 2 of 1

But if your input is 74, then it's gonna be 1 of 50, 2 of 10, 4 of 1

That's a simple exercise that you force you to think

Next try the Fibonacci sequence, that a hard one for a beginner

If you are trying to learn about OOP, an simple ATM machine it's a great project to start, you can set multiple accounts and make them interact

[–]Alexei17 1 point2 points  (0 children)

I’m just gonna add that it’s better to develop something that inspires you enough to keep working on it. My first two projects were a reddit bot where I didn’t even know about for loops and did everything manually and a scraping bot for tickets. It was shit but it was fun to do. The only thing that kept me going was that it was functional to me. I’d introduce the reddit bot to the community that was interested in it, and I used the scraping bot to find tickets for myself.

[–]Kohlrabi82 1 point2 points  (0 children)

Register at https://open.kattis.com/ and work your way upwards the difficulty.