Python Assignment
Python Assignment
1. James Deen is an investor specializing in the Technology Domain. James purchases stock in successful
technology companies using a stockbroker and later sells them at a profit margin.
As part of his investment portfolio, James purchased 2000 units of stock in Google LLC worth 80,000(40
apiece) in the month of November, 2019. The stockbroker charged 3% commission on the total purchase
value of the stocks.
A month later, James sells his entire stock holding in Google LLC for $42.75 apiece. He pays a commission of
3% on this transaction as well to his stockbroker.
The profit margin made by James in the entire transaction (purchase & sale, including commissions paid)
2.Try to find out the hidden sentence using Slicing. The solution consists of 2 steps!
3. . Write a Python program to build a numeric converter. The program will take integer from the user and
convert it into binary, octal , hexadecimal, float , complex format.
x = 10
y=5
list1 = [1, 2, 3, 4]
list2 = [3, 4, 5, 6]