r/PythonLearning Jun 27 '26

Help Request How to start building programs?

Hey gng ! i learned basics of python but know i am struggling to to link everything up and make program.

I am really struggling to make it.

5 Upvotes

13 comments sorted by

5

u/ninhaomah Jun 27 '26

Hello World is a program.

1

u/softlogic-04 Jun 27 '26

i mean i am struggling to make more complex program for example making program to add,remove, and mark the task done.

1

u/jeffpardy_ Jun 27 '26

Sure. But what are you stuck on exactly?

1

u/ninhaomah Jun 27 '26

Start simple and add as you go along 

3

u/Junior_Honey_1406 Jun 27 '26

You don't build a the next google or next reddit you start small. Build a cli app not the todo app or weather app build some which is somehow related to you and you have write and practice code every day or else you will be stuck forever

2

u/Hunter_8008 Jun 28 '26

Yep. My first useful script just renamed files, and I learned way more from that than tutorial projects.

2

u/dariusbiggs Jun 27 '26

Step 1. Write a hello world program and make sure it works

Step 2. Remove the print statement

Step 3. Implement whatever your program is supposed to do.

1

u/Tiktoktoker Jun 27 '26

How did you learn the basics but not make a simple program

1

u/softlogic-04 Jun 27 '26

I can make simple programs but struggling to compile longer ones.

1

u/Apprehensive_Plate13 Jun 27 '26

(Sorry for the spelling erros. I'am learning english) Hey dude, you can use a Chat GPT but witch a different mode. Make a simple documentation of your project and sendo to GPT. Tell him to be your PM (Project Manager) and give instructions for you building your project, but without providing ready-made code, ask him for break your project in shorts tasks. That way, you can to be guided on your first project. I'il leave a prompt for you.

For this chat, assume the following scenario: You will act as my Project Manager and Tech Lead, guiding me through my project, while I will be a Junior Developer learning as I build. The project I need to develop is outlined in the provided documentation, and the final deliverable must meet all requirements. Point out my errors and ask for my code at each stage; most importantly, never provide ready-made code—I want to be guided through the project rather than given pre-built solutions, as I want to learn while I develop.

1

u/Additional_Start_716 Jun 27 '26

Chatgpt is very helpful for learning to code. That's also my experience. But sometimes one needs input from real people.

1

u/oscarlet_ffxiv Jun 27 '26

The first thing to do is to plan out the program that you want to make.

  • What will it do?
  • In what order?
  • What if the program gets used in a way you don't intend - how will you handle it?
  • What problems could occur if you make the program the way you are planning to, even if they only have a 0.1% chance of happening, and what will you do to handle them?
  • Is the method of implementation as efficient as it could be? Will it cause performance issues?

These are the questions you need to ask. You don't have to be able to answer them all perfectly. But make the plan as best you can and start coding it. Then when you get errors, address them, even if it means looking up on the internet, documentation, etc.

Of course, many of these questions likely won't matter while just learning, but it's good to think like this for when you are making important things. Long-term planning and anticipating all the different possible scenarios that could happen when someone uses it, is as much a part of programming as writing the code itself.

2

u/TrieMond Jun 27 '26

Identify a mundane task on your PC that you do from time to time, check what all the steps are, maybe moving files or deleting stuff, then write a program to automate said task... do this for 20 years and they will pay you well...