Skip to content

Commit 7d81853

Browse files
committed
changed folder structure
1 parent 604336a commit 7d81853

File tree

6 files changed

+36
-0
lines changed

6 files changed

+36
-0
lines changed
-80.8 KB
Binary file not shown.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
print('Welcome to the Hacktoberfest 2022 Quiz')
2+
answer=input('Are you ready to play the Quiz ? (yes/no) :')
3+
score=0
4+
total_questions=3
5+
6+
if answer.lower()=='yes':
7+
answer=input('Question 1: What programming language was this quiz created in?')
8+
if answer.lower()=='python':
9+
score += 1
10+
print('correct')
11+
else:
12+
print('Wrong Answer :(')
13+
14+
15+
answer=input('Question 2: Is one of the values of Hacktoberfest 2022 "EVERYONE IS WELCOME" ? ')
16+
if answer.lower()=='yes':
17+
score += 1
18+
print('correct')
19+
else:
20+
print('Wrong Answer :(')
21+
22+
answer=input('Question 3: Does Hacktoberfest end on December 31?')
23+
if answer.lower()=='no':
24+
score += 1
25+
print('correct')
26+
else:
27+
print('Wrong Answer :(')
28+
29+
print('Thankyou for Playing the Hacktoberfest quiz game, you attempted',score,"questions correctly!")
30+
mark=(score/total_questions)*100
31+
print('Marks obtained:',mark)
32+
print('BYE!')

GAMES/Software-Eng-UI-Quiz/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Quiz Game
2+
Snake game in your windows, linux or macOS console

GAMES/Hacktoberfest Quiz/hacktoberfest_quiz.py renamed to GAMES/Software-Eng-UI-Quiz/hacktoberfest_quiz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
root.title("Hacktoberfest Quiz")
99

10+
scrollbar = Scrollbar(root)
11+
scrollbar.pack( side = RIGHT, fill = Y )
1012

1113
label = Label(root,text="Hacktoberfest Quiz ",width = 20,height=4,font=("algerian",15))
1214
label.pack()

0 commit comments

Comments
 (0)