r/PythonLearning • • Aug 25 '25

The 4th version of my "first code"

Post image

Yesterday I posted the first version of it, and then I started upgrading, named it "project americas" so I don´t have to keep calling it "my first code" everytime

Thank you for all the feedback in the first one :)

86 Upvotes

11 comments sorted by

5

u/Dzhama_Omarov Aug 25 '25

Tip: read about PEP8, it makes your code way clearer (if you are using VS Code, instal Flake8 extension, it will automatically show where you’re not following PEP8)

2

u/JournalistHot3749 Aug 25 '25

Installed Flake8 and adjusted this, it is nicer indeed :)

3

u/NorskJesus Aug 25 '25

Tip: Write everything in English. At least variables

2

u/JournalistHot3749 Aug 25 '25

thx for the tip!! just updated the code adjusting that.
usually I watch tutorials in both Portuguese and English so the code got mixed languages :/

1

u/JaleyHoelOsment Aug 25 '25

is this a thing? where I work everyone is expected to speak english, but i’d imagine there are many software companies that do not enforce english in the code base?

i’m genuinely curious

2

u/NorskJesus Aug 25 '25

Is a good practice, specially if you need to ask for help. The strings are not so important, but variable names are to understand what the code does

1

u/JaleyHoelOsment Aug 25 '25

makes sense!

2

u/Cybasura Aug 26 '25

Try using non-english in a international/regional project team, you'll learn very quickly why standardization of at least language is so important

Its also why UML is a thing, so even if you dont speak english, you can synchronize and communicate through code and design language

1

u/yppolar Aug 25 '25

pro seu "primeiro codigo" ta otimo meu irmão, gostando de ver seus ralatos por aqui

1

u/[deleted] Aug 25 '25

Code is very clear and easy to read👍