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 3134392 commit 53c2f7eCopy full SHA for 53c2f7e
PyBank/main.py
@@ -47,15 +47,15 @@
47
avg_change = total_change/len(months)
48
49
output = (
50
- f"\nFinancial Analysis\n"
51
- f"----------------------------\n"
+ f"\n Financial Analysis \n"
+ f"------------------------------\n"
52
f"Total Months: {total_m}\n"
53
f"Total: ${net_total}\n"
54
f"Average Change: ${avg_change:.2f}\n"
55
f"Greatest Increase in Profits: {greatest_increase[0]} (${greatest_increase[1]})\n"
56
f"Greatest Decrease in Profits: {greatest_decrease[0]} (${greatest_decrease[1]})\n")
57
58
-with open(file_to_output, "w") as text_file:
+with open(file_to_output, "w") as txt_file:
59
txt_file.write(output)
60
61
file_to_output
0 commit comments