Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Quiz
#1
Hello I am trying to create a basic quiz of 5 questions .
I am really new to programming and so any help with be fantastic .
The code needs to be very basic. Can someone please correct my code . I need the ans1 to be "int"
Many thanks

score= 0#score start with zero
name = input("Enter your name:    ")
ans1= input(int("Q1. What is 3*3 ?")
if ans1== 9:
            print("Correct")
            score=score+1
else:
        print("Incorrect")
Reply


Messages In This Thread
Help with Quiz - by Learning2teach - May-23-2017, 07:34 PM
RE: Help with Quiz - by Ofnuts - May-23-2017, 08:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QUIZ GUI Form_When admin panel is open, main quiz form is getting freeze Uday 4 793 Aug-25-2023, 08:24 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020