Professional Documents
Culture Documents
Wa0000.
Wa0000.
Principal
Acknowledgeme
nt
I wish to express my deep gratitude and
sincere thanks to all my teachers for
encouragement and the management for
providing all facilities to successfully complete
the project work.
I extend my sincere thanks to my principal;
and my Computer Science teacher, whose
valuable guidance helped to successfully
complete the project.
I extend my gratitude to my parents and
classmates for their valuable support and
time.
Contents
➢ Introduction
➢ Software and Hardware
Requirements
➢ Why Python?
➢ Design Work
➢ Code
➢ Output
➢ Bibliography
Quiz-Game
A simple quiz game made using python.
Game Instructions:
1.Total Number of genres=9
2.Number of questions in each genre=10
3.For correct answers mark (+1)
4.For wrong answers mark (0)
5.Answers to be given in lower-case only
6.For choose questions, options are
considered are answers
7.Believe in yourself and start the quiz and
try your best.
Available genres for the quiz are
> Cuisines > Automobiles
> Inventions > GK & Politics
> Technology > Astronomy
> Cinema > Sports
Why Python?
• Python is a widely used general-purpose,
high level programming language.
• It was initially designed by Guido van
Rossum in 1991 and developed by Python
Software Foundation. It was mainly
developed for emphasis on code
readability, and its syntax allows
programmers to express concepts in fewer
lines of code.
• Python is a programming language that
lets you work quickly and integrate
systems more efficiently.
• There are two major Python versions :
Python 2 and Python 3. Both are
quite different. Python 3 is used for this
project.
Features of Python
Interpreted :
•There are no separate compilation and
execution steps like C and C++.
•Directly run the program from the source
code.
•Internally, Python converts the source code
into an intermediate form called byte codes,
which is then translated into native language
of specific computer to run it.
•No need to worry about linking and loading
with libraries, etc.
Platform Independent:
• Python programs can be developed and
executed on multiple operating system
platforms.
• Python can be used on Linux, Windows,
Macintosh, Solaris and many more.
• Free and Open Source; Redistributable
High-level Language:
•In Python, no need to take care about
lowlevel details such as managing the
memory used by the program.
Simple:
•Closer to English language. Easy to Learn
•More emphasis on the solution to the
problem rather than the syntax.
Embeddable:
•Python can be used within C/C++ program to
give scripting capabilities for the program’s
users.
SOFTWARE
The Software used to run the Python program are:
1. Ubuntu 16.04 / Windows 7.0 or later
2. Pydroid 3.0
HARDWARE
The hardware used to run the project are:
1. 2 GHz Dual Core Processor
2. 2 GB RAM
3. 128 GB HDD
4. Monitor with 1024 x 768 Screen Resolution.
CODE
name=input("ENTER YOUR NAME:")
print() age=int(input("ENTER YOUR
AGE:")) print() if age>=10:
print("YOU ARE ABSOLUTELY ELIGIBLE TO PLAY THE GAME") else:
print("YOU ARE NOT ABLE TO PLAY THE GAME BUT STILL GIVE A SHOT")
import csv first=["Name","Age"] second=[name,age]
file=open('report.csv','w') report=csv.writer(file)
report.writerow(first) report.writerow(second)
third=[“genre you choosed”,’marks obtained’]
report.writerow(third) print()
role=input("YOU ARE STUDENT/TEACHER/PLAYER:") if
role=="student":
print("THE PERSON PLAYING IS STUDENT")
elif role=="teacher": print("THE
PERSON PLAYING IS TEACHER") else:
print("THE PERSON PLAYING IS PLAYER")
print("----------------------------------------------------------------
----------------")
print("----------------------------------------------------------------
----------------") print()
print("RULES FOR THE GAME")
print("1.number of genre=9")
print("2.number of questions in each genre=10")
print("3.for correct questions mark +1")
print("4.for wrong questions mark 0")
print("5.answers to be given in small letters only") print("6.for
choose questions options are considered are answers")
print("7.believe in you and start the quiz and try your luck")
print()
genre=["cusines","inventions","technology","astronomy","automobiles",'c
inema','sports','gk' ,'politics'] print() print("Available genre for
the quiz is") for i in genre:
print('>',i)
print("================================================================
================") print("THE REAL FUN BEGINS NOW")
print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<><><><><><><><>")
print() def
cusines():
points=0
print("Q1.WHICH IS THE FOOD CAPITAL OF THE WORLD?")
print()
ans=input("give the answer:")
if ans=="b": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:new york")
print()
print("Q2.WHICH COUNTRY HAS THE BEST CUSINE IN THE WORLD")
print()
ans=input("give the answer:")
if ans=="c": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:italy") print()
print("Q3.WHAT IS THE FIRST HOTEL BUILT IN WORLD")
print("OPTIONS ARE GIVEN BELOW")
print("a.rosewood guangzhou,china")
print("b.nishiyama onsen keiunkan,japan")
print("c.olde bell hotel,england")
print()
ans=input("give the answer:")
if ans=="b": print()
print("hurray! you have given the correct answer")
is:nishiyama onsen keiunkan,japan")
print()
print("Q4.WHICH IS KNOWN AS( KING OF SPICES)?")
points+=1
else:
print()
print("you have given the wrong answer and the correct
answer
print("b.cardamom") print("c.black
pepper")
print()
ans=input("give the answer:")
if ans=="c": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:black pepper")
print()
print("Q5.WHAT IS THE HOTTEST CANDY IN THE WORLD?")
print()
ans=input("give the answer:")
if ans=="a": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:ghost pepper jelly beans ")
print()
print("Q6.WHAT IS THE NATIONAL FOOD OF MEXICO?")
print()
ans=input("give the answer:")
if ans=="c":
print()
print("you have given the correct answer")
is:mole sauce")
print()
print("Q7.WHAT IS THE NATIONAL VEGETABLE OF INDIA?")
print("OPTIONS ARE GIVEN
BELOW") print("a.yellow
pumpkin") print("b.capsicum")
print("c.brinjal")
points+=1
else:
print()
print("you have given the wrong answer and the correct
answer
print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:yellow pumpkin")
print()
print("Q8.WHAT IS THE MAIN VITAMIN FOUND IN STRAWBERRY?")
print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:vitamin-c")
print()
print("Q9.WHAT IS THE SECOND OLDEST RECIPE KNOWN TO HUMAN BEING?")
print()
ans=input("give the answer:")
if ans=="c":
print()
print("you have given the correct answer")
points+=1
else:
print()
print("you have given the wrong answer and the correct
answer
is:sumerian beer")
print()
print("Q10.WHICH PART OF THE GINGER PLANT WE EAT?")
print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:stem") print()
print("the score you scored is:",points)
if points>=8: print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")
print("****************************************************************
*************************************")
print()
pt=['cusine', points]
report.writerow(pt)
def
inventions():
points=0
print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:henry a.fischel")
print()
print("Q2.WHEN WAS GOOGLE FOUNDED?")
print()
print("Q3.WHICH EMPIRE IVENETED THE FIRST WATER POWERED
MACHINES,THE WATER WHEEL AND WATERMILL?")
print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:persian empire")
print()
print("Q4.WHO INVENTED CLOCK")
print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:christian huygens")
print()
print("Q5.WHICH COUNTRY INVENTED RUGBY?")
print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:england")
print()
print("Q6.WHEN WAS CALENDAR INVENTED?")
print()
ans=input("give the answer:")
if ans=="c": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1582") print()
print("Q7.WHICH DYNASTY INVENTED CHOPSTICKS?")
print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:shang dynasty")
print()
print("Q8.WHEN WAS MAURITIUS DISCOVERED?")
print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1507-1513")
print()
print("Q9.WHICH COUNTRY DISCOVERED THE PERIODIC TABLE?")
print()
print("Q10.WHO DISCOVERED VANILLA ICE CREAM ")
print()
ans=input("give the answer:")
if ans=="c": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:thomas jefferson")
print()
print("the score you scored is:",points)
if points>=8: print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")
print("****************************************************************
*************************************")
print()
pt=['inventions', points]
report.writerow(pt)
def
technology():
points=0
print("Q1.WHAT WAS THE FIRST PHOTO POSTED ON INSTAGRAM?")
print()
ans=input("give the answer:")
if ans=="dog": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is: dog")
print()
print("Q2.WHAT PART OF A DATABASE THAT HOLD ONLY ONE TYPE OF
INFORMATION?")
print()
ans=input("give the answer:")
if ans=="field": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:field") print()
print("Q3.WHO DISCOVERED ARTIFICIAL INTELLIGENCE?")
print()
ans=input("give the answer:")
if ans=="alan turing":
print()
print("you have given the correct answer")
points+=1
else:
print()
print("you have given the wrong answer and the correct answer
is:alan turing")
print()
print("Q4.WHICH IS THE FIRST SEARCH ENGINE IN INTERNET?")
print()
ans=input("give the answer:")
if ans=="archie":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:archie")
print()
print("Q5.WHICH IS THE FIRST COMPUTER VIRUS?")
print()
ans=input("give the answer:")
if ans=="creeper virus":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:creeper virus")
print()
print("Q6.WHICH COMPANY FIRST INTRODUCED COMPUTER AHRD DISK IN
1956?")
print()
ans=input("give the answer:")
if ans=="ibm": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:ibm") print()
print("Q7.IN WHICH YEAR '@' WAS FIRST USED IN e-MAIL?")
print()
ans=input("give the answer:")
if ans=="1972": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1972")
print()
print("Q8.WHO IS THE FATHER OF JAVA?")
print()
ans=input("give the answer:")
if ans=="james gosling":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:james gosling")
print()
print("Q9.HOW MANY LAYERS ARE THERE IN TCP/IP PROTOCOL LAYERS?")
print()
ans=input("give the answer:")
if ans=="4" or "four":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:4/four")
print()
print("Q10.WHO IS THE FATHER OF ARTIFICIAL INTELLIGENCE?")
print()
ans=input("give the answer:")
if ans=="john mccarthy":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:john mccarthy")
print()
print("the score you scored is:",points)
if points>=8: print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")
print("****************************************************************
*************************************")
pt=['technology', points] report.writerow(pt)
def
astronomy():
points=0
print()
print("Q3.WHO INVENTED TELESCOPE?")
print()
ans=input("give the answer:")
if ans=="hans lippershey":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:hans lippershey")
print() print("Q4.WHICH TERM DESCRIBES THE ALIGNMENT OF 3
CELESTIAL BODIES?
")
print()
ans=input("give the answer:")
if ans=="syzygy":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:syzygy")
print()
print("Q5.W
HICH IS THE
NAME OF THE
RADIO
SOURCE THAT
IS VERY FAR
FROM EARTH?")
print()
ans=input("give the answer:")
if ans=="quasar":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:quasar")
print()
print("Q6.WHEN DID THE SPACE AGE BEGIN?")
print()
ans=input("give the answer:")
if ans=="1957": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1957") print()
print("Q7.HOW MANY PEOPLE ARE ALLOWED TO TRAVEL IN GAGANYAAN?")
print()
ans=input("give the answer:")
if ans=="3" or "three":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:3/three")
print()
print("Q8.WHO IS THE FIRST SPACE TOURIST?")
print()
ans=input("give the answer:")
if ans=="dennis tito":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:dennis tito")
print()
print("Q9.WHERE IS THE SECOND SPACEPORTS LOCATED IN INDIA?")
print()
ans=input("give the answer:")
if ans=="kulasekarapattinam":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:kulasekarapattinam")
print()
print("Q10.WHO IS THE FIRST PERSON TO WALK IN SPACE?")
print()
ans=input("give the answer:")
if ans=="cosmonaut alexei leonov":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:cosmonaut alexei leonov")
print()
print("the score you scored is:",points)
if
points>=8:
print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")
print("****************************************************************
*************************************")
pt=['astronomy', points] report.writerow(pt)
def
automobiles():
points=0
print()
print("Q2.SEAT,SKODA AND AUDI ARE THE SISTER COMPANIES OF WHICH
COMPANY?") print()
ans=input("gi
ve the
answer:")
if
ans=="volkswa
gen":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:volkswagen")
print()
print("Q3.WHICH COMPANY PRODUCED THE FIRST AUTOMATIC CAR?")
print()
ans=input("give the answer:")
if ans=="general motors":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:general motors")
print()
print("Q4.WHO INVENTED THE FIRST MOUNTAIN BIKE? ")
print()
ans=input("give the answer:")
if ans=="joe breeze":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:joe breeze")
print()
print("Q5.NAME THE FIRST DIESEL BIKE?")
print()
ans=input("give the answer:")
if ans=="royal enfield tauras":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:royal enfield tauras")
print()
print("Q6.WHO INVENTED CAR THAT RUNS ON WATER? ")
print()
ans=input("give the answer:")
if ans=="stanley allen meyer":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:stanley allen meyer")
print()
print("Q7.WHAT IS THE FIRST PRODUCT DESIGNED BY PIAGGIO?")
print()
ans=input("give the answer:")
if ans=="fighter plane":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:fighter plane")
print()
print("Q8.NAME THE COMPANY WHICH WAS FIRST IN THE PRODUCTION OF
AUTOMOBILE IN INDIA? ")
print()
ans=input("give the answer:")
if ans=="hindustan":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:hindustan")
print()
print("Q9.HOW MANY GEARS ARE THERE IN MODEL T FORD?")
print()
ans=input("give the answer:")
if ans=="2" or "two":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:2/two")
print()
print("Q10.WHICH COMPANY LAUNCHED MOPEDS IN INDIA?")
print()
ans=input("give the answer:") if
ans=="automobile products of india":
print()
print("you have given the correct answer")
points+=1 else: print()
print("you have given the wrong answer and the correct answer
is:automobile products of india")
print()
print("
the
score
you
scored
is:",po
ints)
if
points>
=8:
print()
print("you are shining like a star")
elif points>=7:
print()
print("try to shine like a star ")
else: print()
print("put more effort to shine like a star")
print("****************************************************************
****************")
def cinema():
points=0
print('Q.1) Which was the first Indian movie nominated for
Oscar?')
ans=input("ans:")
if ans=='mother india':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Mother
India")
print()
print('Q.2) Which was the first Indian movie to win an Oscar?')
ans=input("ans:")
if
ans=="gandhi":
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER, Correct answer is
Gandhi") print()
print('Q.3) Which is the highest grossing Indian film ever?')
ans=input("ans:") if ans=='dangal': print('hurray! you
have given the correct answer') points+=1 else:
print("WRONG ANSWER,Correct answer is Dangal") print()
print('Q.4) Which was the first Color movie in India?')
ans=input("ans:")
if ans=='kisan kanya':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Kisan
Kanya")
print()
print("Q.5) Who got first Oscar award in India?")
ans=input("ans:") if ans==' bhanu athaiya':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Bhanu
Athaiya")
print()
print('Q.6) Which actor has won the most national awards in
India?')
ans=input("ans:") if
ans=='shah rukh khan':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Shah Rukh
Khan")
print()
print('Q.7) Who was the director of the famous movie
â€S̃holay’?')
ans=input("ans:") if
ans==' ramesh sippy':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Ramesh
Sippy")
print()
print('Q.8) Who was the director of the famous movie â€M̃other
India’?')
ans=input("ans:")
if ans==' mehboob khan':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is Mehboob Khan")
ans=input("ans:")
if ans=='8':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is 8")
ans=input("ans:")
if ans=='2':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is 2")
if points>=7: print('YOU SCORED
',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE') elif
points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME')
else:
print('YOU SCORED',points,'YOU NEED TO LEARN ALOT')
pt=['cinema', points] report.writerow(pt) def sports():
points=0 print('Q.1) Which cricket team has won the 2017
Vijay Hazare
Trophy?')
print('a) Karnataka b)Gujarat')
print()
print('Q.2)The 2017 National Sports Day (NSD) is celebrated on
which day in India?')
ans=input("ans:")
if ans=='b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is b")
print()
print('Q.3) What does the Olympic Flame symbolize?')
print()
print('Q.4) The Commonwealth Games started from which among the
following countries?')
ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")
print()
print('Q.5) Who among the following was the First Indian Cricketer
to bag 500 wickets in Test matches?')
print()
print('Q.6) Jules Rimet Trophy is related to which of the
following sports?')
ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")
print()
print('Q.7) Omega Mission Hills World Cup is related to which
game?')
print(' a)Tennis b)Golf c)Hockey d) Polo')
ans=input("ans:")
if ans=='b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is b")
print()
print('Q.8) Who among the following has written the book
“Cricket My Style―?')
print()
print('Q.9) What is the other name of Salt Lake Stadium ?')
ans=input("ans:")
if ans=='a':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is a")
print()
print('Q.10) Which of the following Indian Sports Team is also
known as “The Bhangra Boys?')
ans=input("ans:") if
ans== 'kalpana chawla':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Kalpana
Chawla")
print()
print('Q.2)
Who was the
first
Indian in
space?')
ans=input("ans:")
if ans== 'rakesh sharma':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Rakesh
Sharma")
print()
print('Q.3) Who was the first Man to Climb Mount Everest Without
Oxygen?')
ans=input("ans:")
if ans== 'phu dorji':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Phu
Dorji")
print()
print('Q.4) Who built the Jama Masjid?')
ans=input("ans:")
if ans== 'shah jahan':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Shaa
Jahan")
print()
print('Q.5) Who wrote the Indian National Anthem?')
ans=input("ans:") if ans==
'rabindranath tagore':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Rabindranath
Tagore")
print()
print('Q.6) Who was the first Indian Scientist to win a Nobel
Prize?')
ans=input("ans:")
if ans== 'cv raman':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is CV
Raman")
print()
print('Q.7) Who is the first Indian to win a Nobel Prize?')
ans=input("ans:") if ans==
'rabindranath tagore':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is
Rabintranath Tagore")
print()
print('Q.8) Who was the first Indian woman to win the Miss World
Title?')
ans=input("ans:")
if ans== 'reita faria':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is Reita Faria")
print()
ans=input("ans:")
if ans== 'insects':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is insects")
print()
ans=input('ans:')
if ans==
'africa':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is Africa")
print()
if
points>=7:
print('YOU SCORED ',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE') elif points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME') else: print('YOU
SCORED',points,'YOU NEED TO LEARN ALOT')
pt=['Gk',
points]
report.writerow(pt) def
politics(): points=0
print('Q.1). Abdul Kalam Azad became the ____ President of
India.')
print('a) 9th b)10th c)11th d)12th')
ans=input("ans:") if ans== 'c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is c")
print()
print('Q.2) The 13th Prime Minister of India was ?')
ans=input("ans:")
if ans== 'a':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is a")
print()
print('Q.3) Who was the President of the Constitutional Committee
and played an important role in drafting the Constitution?')
print()
print('Q.4) Who prevailed in the 1977 elections and ended Indira
Gandhi’s emergency rule?')
print(' a)Atal Bihari Vajpayee b) Morarji Desai c)Charan Singh
d) Lal Bahudar Shastri')
ans=input("ans:")
if ans== 'b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is b")
print()
print('Q.5)Who among the following assassinated Mahatma Gandhi?')
ans=input("ans:")
if ans== 'b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is b")
print()
print('Q.6)Who was the first Indian woman President of the United
Nations General Assembly?')
print()
print('Q.7)Which of the following India’s first women-oriented
bank aimed at providing loans and financial services to women?')
ans=input("ans:")
if ans== 'b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is b ")
print()
print('Q.8)Who was the first female to become the governor of an
Indian state?')
print('a) Subba Lakshmi b)Padmaja Naidu c)Sarojini Naidu
d)Vijaya Lakshmi Pandit')
ans=input("ans:")
if ans== 'c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is c")
print()
print("Q.9) Who was India's first Indian woman Ambassador (or High
Commissioner)?")
print()
print('Q.10) Who among first Woman to climb Mount Everest
twice?')
print('a) Mrs. Meera Sahib Fatima Bibi b)C.B. Muthamma
c)Santosh Yadav d) Mrs. Annie Besant')
ans=input("ans:")
if ans== 'c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is c")
print() if points>=7: print('YOU
SCORED ',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE')
elif points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME') else: print('YOU
SCORED',points,'YOU NEED TO LEARN ALOT')
pt=['politics', points]
report.writerow(pt)
################")
OUTPUT
Bibliography
➢ www.jagranjosh.com
➢ www.daytodaygk.com
➢ www.gktoday.in
➢ www.geeksforgeeks.com