menu
bartleby
search
close search
Hit Return to see all results

program3_3.pyin pythonWrite a wholly creative quiz program that consists of three original questions that you make up according to these specifications:One question should require user input of type intOne question should require user input of type floatOne should require a string input

Question

program3_3.py

in python
Write a wholly creative quiz program that consists of three original questions that you make up according to these specifications:

  • One question should require user input of type int
  • One question should require user input of type float
  • One should require a string input
check_circleAnswer
Step 1

The code consists of three inputs such as int, float and string for wholly creative quiz program.

 

Step 2

Program:

 

points=0

print('Question 1:What is the square of 7?')

answer=int(input("Enter answer:"))

if answer == 49:

  print('Right answer')

  points += 1

 

else:

    print('Wrong answer. The correct answer is 49.')

print('Question 2:What is the value 2/5 ?')

answer=float(input("Enter answer:"))

if answer == 0.4:

  print('Right answer')

  points += 1

 

else:

    print('Wrong answer. The correct answer is 0.4.')&n...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Our solutions are written by experts, many with advanced degrees, and available 24/7

See Solution
Tagged in

Engineering

Computer Science

Python

Related Computer Science Q&A

Find answers to questions asked by student like you

Show more Q&A add
question_answer

Q: This code is for python Searching for Data In this lab we'll compare the time it takes to search for...

A: Instructions for solving the given problem:In part 1, use random.randint() function to generate rand...

question_answer

Q: Consider the following procedure: procedure mystery (x, y, z); integer x, y, z;beginz = 2; y= z+x;en...

A: Pass by reference copies the location of argument to the parameter. Hence, the final value of n, A[1...

question_answer

Q: Write a program which does the following (name=xxx_Chapter81):1) Asks the user for the number of row...

A: Description:The following program is to print the two dimensional array.

question_answer

Q: I want to see how one can add 80 elements into an array without manually entering in each element.  ...

A: Given,The name of the first array is numberArray1 and the size of the array is 80.The name of the se...

question_answer

Q: hello good afternoon,   please, I need help with the following problem c++: ASSIGNMENT (CONTROL STRU...

A: A C++  program to display the song time and total time in a table format and a message indicating re...

question_answer

Q: What is the mantissa and exponent values if 6.75 is represented in 8 bit binary floating point repre...

A: Answer:Conversion of decimal to 8-bit floating point representation:Step1: convert the integer part ...

question_answer

Q: How do repeat the cents value? For example if I use the argument cents(1234), it should print 4321 (...

A: Program Instructions:In the function reverse_int(), take a string variable word, and use it to appen...

question_answer

Q: I am trying ro create this java program , i have the table in my tatabase . I am using postgresql ii...

A: Program Instructions:Add the postgresql jar file in your project library.Create a database and a tab...

question_answer

Q: Subject: Computer Organization I 1.a) How many milliseconds (ms) are in 1 second?b) How many microse...

A: ConceptTo solve this, we usually take the time in the power of 10.In 1 second, there are 1,000 milli...

Sorry about that. What wasn’t helpful?