Keeping up with Python
Last Saturday’s programming class has been an extra challenged for me. Although, I knew some basic functions in python before, I still felt a bit lost at some point. Apart from that, my patience has also been tested during the latter exercise period and it is because I wasn’t able to saved my work and had to redo it again.
So, what is the lesson of the story? ALWAYS press CTRL + S and make this your habit. Make sure to have copied and pasted your code to a blank notepad or to another line and I guarantee, it will save you from despair!
After all, if you commit another mistake, you are refusing to correct it. So with that, I’ll be sharing another new learnings and what I’ve achieved after coping to that mistake.
Quiz Game Program
On this exercise, I used 2 IDEs: Colab notebook and Spyder just to give you a view of comparisons of how are these being used and how codes are executed.
So for this example, I chose movie trivia quiz.
Step 1: Create interactive input syntax
Colab
Spyder
Step 2: Create storage variable where all points will be accumulated and stored
Colab
Spyder
Step 3: Create interactive input syntax for question and choices
Colab
Spyder
Step 4: Create and set conditions for each questions
Colab
Spyder
Step 5: Create conditions for score results
Colab
Spyder
Which is better? Colab Notebook or Spyder?
For Colab notebook, what I like about it is that you can easily check or inspect your code results per line unlike with Spyder. But, you can just use it when running online. As to Spyder, you don’t have to connect online since it is an open source tool and you can practice or do some coding even without connecting on the internet.
Personally, I think these two tools are really good but it will depend on the comfort level of the user. And for me, I just keep on exploring these tools until I find my niche.
That’s all for this week!