Sorry for the bad resolution. >.<
So this is my first ever attempt on the assignment. :3 This script can be executed but this way is an easy way out for Python Language.
When I first started out, I thought Python was going to be very simple. I heard rumors about Python being the "highest" programming language. ("Highest" referring to be the simplest). However, I was wrong. Python is not that simple as it looks. When you get to another further section of Python, it gets tougher.
This script shows the "easy" version of the quiz. This is basic and easy to understanding. You can just print your questions and answers out individually. For example, there will be 2 functions [checkquestions() and askquestions()] for each question. This is considered long-winded. Another thing is that there is no main() function for this format. At this point, I did not know what is "str.lower" or "str.upper". So I added [Answer == "A" or "a"] which is actually quite hard-coded. I knew how to do 'list' so I did a list for every single question which is super long-winded and boring looking.
The following is the running module of this script:
I have not put in my grading and percentage functions inside so there was just questions, options and replies. :) My introduction works well :)




No comments:
Post a Comment