DAY 1 THOUGHT PROCESS
I had to download PyCharm and set it up
although I already had vs code on my PC. It was a requirement.
I happened to look through the course content
yesterday and thought of downloading PyCharm before today but I’m glad I didn’t.
I completed the first assignment
successfully. We had to print out a 5-line recipe, and I just made use of the
print function for each line. I know there’s a shorter way to do this (i.e., printing
multiple lines at once) but I couldn’t really remember. I think it’s by using
the quotation thrice (i.e., “““xxx”””) but it’s day 1. It’s fine. We’ll learn
it in future courses. And then it was covered in the next lesson. Crazy!! It
ended up not being what I expected :)
Day 1 also covered debugging, string
concatenation, the input function, comments (Ctrl + /), the len function and
variables.
Exercise 1 – print out a recipe
Exercise 2 – debug some lines of code
Exercise 3 - switch the contents of the 2
glasses with 3 lines of code. I did in just 2 lines of code. I actually thought
I couldn’t at first and was tempted to ask for help. I failed twice, asked for
help and got it right. The hint asked to think about it in a real-life scenario.
I only understood this after :(
There was a quiz on naming variables and that
was it for today.
I did it!! Yayy
Comments
Post a Comment