https://github.com/greg0rys/profitloss_calc_updated
updated version of profit loss cal that now validates all users inputs
https://github.com/greg0rys/profitloss_calc_updated
Last synced: 12 months ago
JSON representation
updated version of profit loss cal that now validates all users inputs
- Host: GitHub
- URL: https://github.com/greg0rys/profitloss_calc_updated
- Owner: greg0rys
- Created: 2021-05-17T06:09:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-13T17:13:56.000Z (over 4 years ago)
- Last Synced: 2025-06-01T00:45:32.326Z (about 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Profit Loss Calculator
_*built by*_: __Greg Shenefelt__
_*version 12:13:2021*_ (most recent)
_*built using:*_ Python
---
Usage:
+ Allows the user to run a quick estimate on the total losses for a shipment based off quick markdowns.
+ It also gives feedback on what the user should do to reduce these losses.
---
```python
# I built the interactive feel by manipulating a truthy loop
again = y;
while again:
# run main()
# after main() has been run -> ask if user would like to use the program again
again = input("Would you like to go again?")
if again == 'y':
# make the loop iterate again
continue
else:
# user entered something other than 'y' || break from the loop.
break;
```