Skip to content

Commit 2475320

Browse files
committed
2 parents e5ac3a2 + 616c7ca commit 2475320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Problem Set 3/fuel/fuel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
except (ValueError, ZeroDivisionError):
1111
pass
1212

13-
p = f*100
13+
p = round(f*100)
1414
if p == 100:
1515
print("F")
1616
elif p <= 1:
1717
print("E")
1818
else:
19-
print(f"{int(p)}%")
19+
print(f"{p}%")

Problem Set 3/taqueria/taqueria.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
S += menu[items]
1919
print(f"${S:.2f}")
2020
except EOFError:
21-
print("\nExiting...")
21+
pass
2222
break

0 commit comments

Comments
 (0)