I’ve made a first, very simple, attempt at making a quiz game for the terminal. I plan to eventually have loads of questions that are chosen at random for the player, but I think for a first attempt it’s not too bad!
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"The Quiz!"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Welcome to The Quiz! Hope you are ready for some serious general knowledge quizzing. Get as high a score as you can! First of all, would you mind telling me your name?\n"
This file has been truncated. show original
#!/usr/bin/env python
# coding: utf-8
# The Quiz!
# In[1]:
print("Welcome to The Quiz! Hope you are ready for some serious general knowledge quizzing. Get as high a score as you can! First of all, would you mind telling me your name?")
# In[2]:
player_name = input("Player, what is your name?")
print("Hello, " + player_name + "! Get ready for some quizzing!")
print("You will be asked a series of multiple-choice questions, when selecting your answer, only provide the letter of your answer selection")
# In[3]:
This file has been truncated. show original