Friday, May 6, 2022

Python program to calculate stop-loss level for a given buy price.

 def findSLTP():

c = int(input("Enter current market price : "))

print("SLTP for " + str(c) + " at 6% loss should be : " + str(int(c - 0.06*c))) 

x = input("Press Enter to exit application ")

findSLTP()

No comments:

Post a Comment

Resources for preparing for SDE2/SDE3 roles

Software Design principals and patterns. (Design Patterns)  1.  https://bytebytego.com/ 2.  https://refactoring.guru/