fixed line spacing

This commit is contained in:
lickthecheese 2020-03-13 19:06:23 -04:00
parent 15c08a7de5
commit c1160874f7
1 changed files with 2 additions and 2 deletions

4
uquiz
View File

@ -21,7 +21,7 @@ if len(sys.argv) < 2:
filename=subprocess.run(['bash -c "find /home/*/.uquiz/* | grep \'{}\' | head -n 1"'.format(sys.argv[1])], shell=True, stdout=subprocess.PIPE).stdout.decode('utf-8')[:-1]
print('Using "{}"! wrong quiz file? specify a complete path (make sure your quiz file is in a .uquiz/ in a homedir)'.format(filename))
print('Using "{}"! wrong quiz file? specify a complete path (make sure your quiz file is in a .uquiz/ in a homedir)\n'.format(filename))
answers = []
@ -34,7 +34,7 @@ with open(filename, 'r') as file:
data = json.load(file)
print(data["message"])
for question in data["q"]:
print('Question {}: {}'.format(data["q"].index(question)+1, question['q']))
print('\nQuestion {}: {}'.format(data["q"].index(question)+1, question['q']))
for ans in question["o"]:
print("{}) {}".format(data["t"][question["o"].index(ans)],ans))
chosen = 0