Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2653394

Browse files
Merge pull request #2 from Adv-Software-Eng-Assessment/michael
changed folder structure
2 parents 604336a + 7d81853 commit 2653394

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
File renamed without changes.

‎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()
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /