Skip to content

Commit 53c2f7e

Browse files
committed
update pybank main.py
1 parent 3134392 commit 53c2f7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PyBank/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
avg_change = total_change/len(months)
4848

4949
output = (
50-
f"\nFinancial Analysis\n"
51-
f"----------------------------\n"
50+
f"\n Financial Analysis \n"
51+
f"------------------------------\n"
5252
f"Total Months: {total_m}\n"
5353
f"Total: ${net_total}\n"
5454
f"Average Change: ${avg_change:.2f}\n"
5555
f"Greatest Increase in Profits: {greatest_increase[0]} (${greatest_increase[1]})\n"
5656
f"Greatest Decrease in Profits: {greatest_decrease[0]} (${greatest_decrease[1]})\n")
5757

58-
with open(file_to_output, "w") as text_file:
58+
with open(file_to_output, "w") as txt_file:
5959
txt_file.write(output)
6060

6161
file_to_output

0 commit comments

Comments
 (0)