
Kid Blog: My Python Journey
My first program
I made my first program in Python when I was 9 years old (I am still 9). It was very simple, but it was a start.
print("Hello, world!")
Over time, I got into more complex programs using if
statements, elif
statements, for
loops, and while
loops. I coded more and I made more complex programs. I got into more complex functions such as input()
and isdigit()
.
Error Handling
Error handling is a very important part of programming. It is a way to handle errors that may occur in your code. Sometimes there are bugs that show up in my code that I don't know the root cause of. One second there'd be a syntax error, the next there'd be a runtime error. I had to learn how to handle these errors and debug my code. Sometimes it'd show that I had an error, but I couldn't see an obvious one. I had to learn how to use the python debugger and set breakpoints to find the root cause of the error.
Hard things
Some of the functions that I learned were obnoxiously annoying. isdigit()
was one of them. It'd return False
even if the string was "123"
. Also, I kept forgetting where to put the variable in there. It was one of the most frustrating things to debug and learn.
Conclusion
All in all, I'm having a lot of fun learning Python. I would recommend it to anyone who wants to learn how to code, especially if you're a kid like me and a beginner.