About 35,000,000 results
Open links in new tab
  1. How to create a simple quiz in python with multiple topics?

    Nov 7, 2014 · First of all your code is (no offence) all whack, one your completely ignoring the : s, don't use the normal input unless necessary or your in python 3. Also, please explain how your going to make the the quiz, string formatting, a list of questions and answers, a …

  2. How to make a multiple-choice question in Python | Example code

    Dec 14, 2021 · To create a multiple-choice question in Python, you can use a function to display the question and its choices, and then check the user’s input against the correct answer. …

  3. Build a Quiz Application With Python

    Feb 2, 2025 · In this tutorial, you’ll build a Python quiz application for the terminal. You’ll start by developing a basic app capable of asking questions, collecting answers, and checking correctness.

  4. Yes/No question with user input in Python - bobbyhadz

    Apr 9, 2024 · # Table of Contents Yes/No question with user input in Python Yes/No while loop with user input in Python # Yes/No question with user input in Python To ask the user a yes/no …

  5. Make python ask questions from strings - Stack Overflow

    Mar 16, 2016 · I want to make python ask questions to the user - from random variables in lists. It needs to ask the question requiring an input from the user. This is my code so far: name = input("What is your full name?") How would I make the last line of code ask a question and get an input from the user?

  6. How to Ask for User Input in Python: A Complete Guide

    To ask for user input in Python, use the input () function. For example, to ask a number, user_number = input ("Enter a number: ")

  7. Asking the user for input until they give a valid response

    Apr 25, 2014 · Good question! You can try the following code for this. =) This code uses ast.literal_eval () to find the data type of the input (age). Then it follows the following algorithm: Ask user to input her/his age. 1.1. If age is float or int data type: Check if age>=18. If age>=18, print appropriate output and exit. Check if 0<age<18.

  8. How To Ask The User A Question In Python

    Here’s how you How to ask the user a question in Python. But, how will you get to know that python is asking you your name if you haven’t written this code?

  9. How to Make a Simple Math Quiz Game in Python - The Python Code

    Learn how to make a simple math quiz game in Python utilizing the PyInputPlus module to verify the user input.

  10. Create a simple quiz game program in python with score

    In this post, you will learn how to create a simple quiz game program in python with a proper explanation and algorithm.

  11. Some results have been removed
Refresh