Skip to content

Commit

Permalink
Fix subtract_lines.py for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonidBeynenson committed Sep 29, 2021
1 parent 5064d07 commit 731405e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions subtract_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

for line in sys.stdin:
if last_line:
print last_line,
print(last_line, end="")

if not first_line:
first_line = line
Expand All @@ -33,6 +33,6 @@

numsec = int(dt_time.total_seconds())
nummin = int(math.ceil( (numsec + 10.0) / 60.0))
print "\nrest {} min\n".format(nummin)
print("\nrest {} min\n".format(nummin))

print last_line,
print(last_line, end="")

0 comments on commit 731405e

Please sign in to comment.