Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

Python for Quant Trading

Public • 120 • $99/m

2 contributions to Python for Quant Trading
Issue regarding Q.6 in Conditional problems given
I am facing problem in question 5 in conditional problems for batch 27. Like i didn't understand how to proceed. Problem 6: Stock Profit/Loss Calculator with Multiple Conditions Description: Develop a Python program for stock traders to calculate their profit or loss from stock transactions. The program should ask users to input their purchase price, selling price, and the number of shares they traded. Based on these inputs, the program calculates the total profit or loss. Additionally, it categorizes the profit or loss into 'High', 'Moderate', or 'Low' based on predefined thresholds: profits or losses above $2000 are 'High', between $1000 and $2000 are 'Moderate', and below $1000 are 'Low'. For losses, just label them as 'Loss'. Sample Input: Enter purchase price: 100 Enter selling price: 121 Enter number of shares: 50 Expected Output: Profit: $1050.00 Profit Category: Moderate @Sunil Sala please guide for this question. i am sharing link for my google colab where i have solved the problem and saw a different solution you provided. So kindly check if my solution is also right or wrong. Request to please explain in class. https://colab.research.google.com/drive/1lQcGJLQKXSZKSYGmo2Gm7cpXu2I_7zm4?usp=sharing
0
2
New comment Aug 2
0 likes • Aug 2
ok
Introduction
Hi, I am Deepa Shakdwipee. I am Commodity Research Analyst and Technical Analyst. I am based in London. This is my linked in profile: https://www.linkedin.com/in/deepa-shakdwipee-cmt-msta-92b436a?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3BibSKeaIOQFezCDWkXm1vrw%3D%3D
0
0
1-2 of 2
Deepa Shakdwipee
1
5points to level up
@deepa-shakdwipee-1803
Deepa Shakdwipee, CMT,MSTA

Active 25d ago
Joined Jul 11, 2024
London
powered by