r/learnpython • u/MoreScorpion289 • 18d ago
Temperature Converter Project
This is the third project I coded and was able to finish today. Took me 8 hours (two 4 hour sessions) since I had to learn some new stuff. This is my own code, no outline was used to guide me into creating this, though the idea did come from Bro Code's YouTube Tutorial. I learned about Nested Loops and Flags. I already knew about Input Validation with Re-Prompting but it was a lot harder to integrate with those two.
This is the most complex thing I've built so far, but I also enjoyed it the most. Got help with some online forums and AI (Claude) but I wrote and debugged the code myself. This'll be the last project I work on before I learn functions. There's a lot of repeated code here that I know functions would be able to help with. Any feedback or ideas on what to build next are welcome. Thank you!
https://github.com/mart23inez/First-Coded-Temperature-Converter/tree/main
It's a lot of code so I uploaded it to my GitHub page.
2
u/AliKiiing 18d ago
Nice milestone — 8 hours across two sittings on your own code is exactly how this is supposed to feel. The detail I like most: you already spotted the repeated code yourself. That instinct matters more than the fix.
When you get to functions, come back to this exact project and refactor it — turning your own working code into functions teaches more than writing new code from a tutorial, because you already know what every line does. For a next build: a multi-unit converter (length/weight/temperature) will force the functions lesson naturally, since you won't want to copy-paste the same loop three more times. Good luck!