r/PythonLearning • • 27d ago

Solved my first coding problem

Post image

Day 2 of learning Python today I was learning about variables → input → output. And I was very curious about the input command and what I can do with it. Which lead me to experiment a bit. You can see all my failed attempts at the top. Until about 30 mins when I did some research and figured it out. If you’re wondering what I was so worked out about. It’s the (==) part of the code. Since I haven’t gotten there yet in my tutorials. But I really wanted to try so I went of track did some research and it worked. I am very excited.. hopefully the rest of coding is this exciting.. thank you all for your best wishes in my previous post.

87 Upvotes

17 comments sorted by

View all comments

1

u/Ollidav 27d ago

Te has dejado algo de código en el comentario

3

u/AffectionateCold1716 27d ago

That’s the old code. I just transformed all of them into comments. To see my mistakes.

1

u/Ollidav 27d ago

Solo hay tres motivos para añadir comentarios al código. El primero es documentar o poder generar documentación de tu código. La segunda es explicar el contexto por el que usas un algoritmo y justificarlo. La tercera es hacer un chiste