How many times can you spend money on nothing?

spend_money_on_nothing(initial_amount = 1, buy_price = 570, sell_price = 582, threshold = 0.1)
initial_amount: integer, float, default 1
Initial amount in dollars
buy_price: integer, float, default 570
Cost of buying a dollar at your chosen currency
sell_price: integer, float, default 582
Cost of selling a dollar at your chosen currency
threshold: float, default 0.1
Stop condition, we will never get to 0. So it is necessary to have a stop condition.

--

--

--

Physicist turned data scientist. Creator of http://datasciencetrivia.com a Q&A card game to learn key data science concepts by playing.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Santiago Víquez

Santiago Víquez

Physicist turned data scientist. Creator of http://datasciencetrivia.com a Q&A card game to learn key data science concepts by playing.

More from Medium

Is there a better way of solving simultaneous differential

DATA SCIENCE

WINE VARIETY CLASSIFICATION CHALLENGE (MICROSOFT LEARN MACHINE LEARNING CHALLENGE)

Practicum — A Learning Opportunity