Urgent.News

What's breaking now, across thousands of outlets.

Tech

Do zero ao primeiro passo na programação: o que aprendi estudando Python

Começar a estudar programação do zero pode ser intimidador. Antes de começar a aprender de forma estruturada, eu tinha uma visão relativamente simples sobre programação: imaginava que programar era aprender comandos, escrever códigos e fazer programas funcionarem. Depois dos primeiros estudos, percebi que a realidade é um pouco diferente. Programar não é apenas conhecer uma linguagem. É aprender…

Starting a journey into programming from scratch can feel overwhelming. Before embarking on structured learning, I had a relatively simple view of what programming entailed: learning commands, writing codes, and making programs run. After the initial studies, I realized the reality is a bit different. Programming isn't just about knowing a language; it's about analyzing problems, organizing information, and constructing solutions step by step.

In this article, I want to share my initial structured contact with Python, some challenges I encountered, and the main learnings from that beginning. Why did I start learning programming? I chose the technology field because I want to build a career in Computer Science and better understand how the systems and technologies we use daily function.

Within this journey, I have an interest in areas like software development, backend, data, and eventually Machine Learning. However, before reaching more advanced topics, I realized I needed to start with the basics. Python proved to be an interesting choice for this beginning due to its relatively simple syntax and widespread use in different areas of technology, from web development to automation, data analysis, and artificial intelligence.

Still, learning a language means more than just knowing its syntax. It required me to develop something I had no experience with: programming logic. My first structured contact with Python Began by studying the fundamental concepts of the language. Some of the first subjects included: Variables Data types Input with input() Converting values with int() and float() Output with print() Mathematical operators Conditional structures with if, elif, and else Loop structures Basic string manipulation As I started, many of these concepts seemed independent.

I could understand what each command did on its own, but I still needed to learn how to combine them to solve problems. For example, knowing that a variable can store a value is simple: age = 19 But then a more important question arises: how can I use this information to make a decision? age = 19 if age = 18: print("Adult") else: print("Minor") At this point, I began to see that programming functions like a sequence of decisions and instructions.

The computer doesn't understand what we want just because we explain a problem. We need to transform that problem into clear steps. The challenges I faced One of the main difficulties in the beginning was understanding the logic behind the code. Sometimes, I could follow an explanation and understand the final result, but when starting an exercise on my own, the question would arise: where do I begin?

This was one of the first important lessons. Knowing commands isn't enough. You need to understand the problem before attempting to write the code. Another difficulty was encountering concepts that seemed small but had important functions. For instance, operators, text formatting, type conversion, and conditional structures may seem like isolated details.

However, when starting to create slightly larger programs, it became clear that these elements need to work together. I also realized that it's normal not to understand a concept immediately. In programming, a topic often only starts to make sense after you've used it in various situations. The main thing I learned about programming logic The main change in my learning wasn't just about learning Python.

It was starting to think about problems in a different way. When a task appears, instead of immediately looking for a ready-made code, I began to try breaking down the problem. For example: What information do I need to receive? What data do I need to store? Is there any calculation? Do I need to make a decision? Does the program need to repeat an action?

What result should be displayed? This way of thinking transformed a large problem into several smaller parts. For example, imagine a simple program that receives two grades and informs if someone was approved. Before writing any code, we could think: What grades do I need to receive? What data do I need to store? Is there any calculation?

Do I need to make a decision? Does the program need to repeat an action? What should be the output? This way of thinking about programming logic turned a large problem into several smaller parts. For instance, consider a simple program that receives two grades and informs if someone was approved. Before writing any code, we could think: What grades do I need to receive?

What data do I need to store? Is there any calculation? Do I need to make a decision? Does the program need to repeat an action? What result should be displayed? Even though I'm still at the beginning of this process, this type of reasoning was one of the most important changes I noticed. Why is practice so important One thing I quickly realized is that just watching videos isn't enough.

A single video can make a concept seem simple. But the true difficulty appears when you close the video and try to solve a problem on your own. It's at this moment that questions like: What variable do I need to create? What type of data should I use? Do I need a condition? Do I need to repeat a certain operation? Why is my code giving a different result than expected?

And, most importantly: how do I correct an error? Practice serves not only to repeat what was taught. It serves to discover what you truly understood. When I can solve a problem on my own, even if the code isn't perfect, it shows that I've begun to transform theoretical knowledge into practical reasoning. I also started to understand that making mistakes is part of the process.

An error in the code doesn't necessarily mean I don't know programming. It often just means there's some part of the logic I need to review. What Python is teaching me beyond Python Even at the beginning, I realized that studying programming involves skills that go beyond just learning the language.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Saturday 29 August →