Skip to content
Advertisement

Tag: function

Novice Python User having issues with simple functions

I am trying to make a simple python program that takes 3 inputs Number of stocks I will Buy Price per share of stock when bought Price per share of stock when sold. In this exercise, there is a 15% commission fee both when buying, and selling the stock. The 4 outputs I am attempting to receive are: Price of

Call many python functions from a module by looping through a list of function names and making them variables

I have three similar functions in tld_list.py. I am working out of mainBase.py file. I am trying to create a variable string which will call the appropriate function by looping through the list of all functions. My code reads from a list of function names, iterates through the list and running the function on each iteration. Each function returns 10

Advertisement