Skip to content

Commit 1020d5d

Browse files
committed
truthiness isn't here yet
1 parent 9a09b1e commit 1020d5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

basics/larger-program.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def read_questions(filename):
4545
with open(questionfile, 'r') as f:
4646
for line in f:
4747
line = line.strip()
48-
if line: # ignore empty lines
48+
if line != '':
4949
question, answer = line.split('=')
5050
answers[question.strip()] = answer.strip()
5151
return answers
@@ -160,7 +160,7 @@ def read_questions(filename):
160160
with open(questionfile, 'r') as f:
161161
for line in f:
162162
line = line.strip()
163-
if line: # ignore empty lines
163+
if line != '':
164164
question, answer = line.split('=')
165165
answers[question.strip()] = answer.strip()
166166
return answers

0 commit comments

Comments
 (0)