Print, String Manipulation, Variables, Input
for new line to make terminal look cleaner
Mondays are always tricky, the weekend goes by in a blink and suddenly you have your first morning meeting already. That is exactly how my day started. Lots of meetings and my full To-Do list. The gloomy weather and the rain did not help.
Though, underneath it all, I was super excited to get started with my Python journey. Do you remember the feelings you had when you started? Nervousness, excitement, the day dreams of being able to bring your ideas to life. Yup, those feelings, that’s exactly what kept me going through the day.
The course is divided into separate days and Day 1 had a few videos and exercises based on the videos and at the end of Day 1, the ability to code my first project. The first exercise is literally what each course/tutorial/website/podcast teaches you. Yes, you know it, I printed my “Hello world”. The rest of the day had videos and exercises on strings, input function and variables.
The one thing, I found interesting was to use “\n” operator to enter a new line in your code so the terminal looks cleaner when you want to ask a question to the user. Variable naming is something that you have to be careful about when the code starts to get complex. Always follow the variable naming syntax and try to make the names descriptive. Python executes line by line, so if you have a variable value in the first line and another value in the second line for the same variable, Python recognizes only the second value and the first value is overwritten.
For today’s project, I created a band name generator which generates a two string band name based on the user’s pets and the city they live in. The project was only 4 lines of code but gave me a good understanding of the day’s concepts and forced me to implement it on a blank IDE which was a challenge.
Already excited for Day 2 and can’t wait to get started. Until tomorrow!