File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ def describe(self):
64
64
cats_text = [QUIZ_CATEGORIES [cat ] for cat in self .categories ]
65
65
66
66
print (f"Quiz title: { self .quiz_title } \n { self .num_rounds } "
67
- f" rounds of { self .num_questions } { self .difficulty } questions. \n "
68
- f"\n Categories are:\n " )
67
+ f" rounds of { self .num_questions } { self .difficulty } questions.\n "
68
+ f"\n Categories are:\n " )
69
69
print (* cats_text , sep = ", " )
70
70
71
71
@@ -133,13 +133,15 @@ def setup_new_quiz():
133
133
try :
134
134
rounds = int (input ("How many rounds should the quiz have? \n " ))
135
135
except ValueError :
136
- cprint ("You must enter a number of rounds for the quiz.\n " , "red" )
136
+ cprint ("You must enter a number of rounds for the quiz.\n " ,
137
+ "red" )
137
138
continue
138
139
if rounds < 0 :
139
140
cprint ("Sorry, you must enter a positive number.\n " , "red" )
140
141
continue
141
142
if rounds > 10 :
142
- cprint ("Sorry, you can only have a maximum of 10 rounds." , "red" )
143
+ cprint ("Sorry, you can only have a maximum of 10 rounds." ,
144
+ "red" )
143
145
continue
144
146
else :
145
147
break
Original file line number Diff line number Diff line change 1
1
art == 5.6
2
2
cachetools == 5.0.0
3
+ dnspython == 2.2.1
4
+ email-validator == 1.2.0
3
5
google-api-core == 2.7.2
4
6
google-api-python-client == 2.45.0
5
7
google-auth == 2.6.5
You can’t perform that action at this time.
0 commit comments