We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ade7b4 commit 4e92b5fCopy full SHA for 4e92b5f
code/jonpan/lab05.py
@@ -33,5 +33,10 @@ def pick_number(x=6):
33
balance += 25000000
34
35
payoff = balance + ticket_cost
36
+ROI = (payoff - ticket_cost) / payoff
37
+# ROI_pct = "{. 0%}".format(ROI)
38
+# print(ROI_pct)
39
-print(payoff)
40
+print(f"\nPayoff: {payoff} ")
41
+print(f"\nExpenses: {ticket_cost} ")
42
+print(f"\nROI: {ROI:.0%} ")
0 commit comments