Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a python template that walks you through how to make a program that analyzes a financial document. I really want to learn how

This is a python template that walks you through how to make a program that analyzes a financial document. I really want to learn how to use it, but I'm not good enough to fill in the blanks. I want to pick apart a line by line program in order to learn how/why it works.

I am using anaconda to launch jupyter lab and programming in there.

image text in transcribed

): #Data revenue = [14574.49, 7606.46, 8611.41, 9175.41, 8058.65, 8105.44, 11496.28, 9766.09, 10305.32, 14379.96, 10713.97, 15433.50] expenses = [12051.82,5695.07, 12319.20, 12089.72, 8658.57, 840.20, 3285.73,5821.12, 6976.93, 16618.61, 10054.37, 3803.96) for i in range (0, len _.append(not ( bad_months 0) #Solution #Calculate Profit As The Differences Between Revenue And Expenses #The Best Month is Where Profit After Tax Was Equal To The Maximum best_month = for i in range (0, len(_ )): _.append( ] == max( )) best_month profit = for i in range (0, len(.)): _.append( 0- profit 0) #The Worst Month is Where Profit After Tax Was Equal To The Minimum worst_month = for i in range (0, len(_ _)): .append( [0] == min )) worst_month #Calculate Profit Remaining After Tax Is Deducted )) profit_after_tax- for i in range (0, len(_ _.append( profit_after_tax -- 00) #Convert All Calculations To Units Of One Thousand Dollars revenue_1000 = (round( ) for i in expenses_1000 = (round( i ) for i in profit_1000 = [round for i in profit_after_tax_1000 = [round ( 0) for i in #Calculate The Profit Margin As Profit After Tax Over Revenue #Round To 2 Decimal Points, Then Multiply By 100 To Get % profit_margin= for i in range (0, len( _.append( profit_margin revenue_1000 = [int(i) for i in expenses_1000 = [int(i) for i in _ profit_1000 = [int(i) for i in profit_after_tax_1000 = [int(i) for i in )) /__ IO) profit_margin = L I L ) for i in profit_margin) #Print Results profit_margin #Calculate The Mean Profit After Tax For The 12 Months mean_pat = sum __ )/len(_ ) mean pat #Find The Months With Above-Mean Profit After Tax good_months = for i in range (0, len( )): _.append( [i]> __) good_months #Bad Months Are The Opposite Of Good Months! bad_months =

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

2. What is the meaning and definition of Banking?

Answered: 1 week ago