Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problim in ex number 8,9 #3

Open
alibhaig opened this issue Jan 5, 2022 · 1 comment
Open

problim in ex number 8,9 #3

alibhaig opened this issue Jan 5, 2022 · 1 comment

Comments

@alibhaig
Copy link

alibhaig commented Jan 5, 2022

Example 8

Computer the value of a block of stock

shares= 150
price= 3 + 5.0/8.0
value= shares * price
print("value",value)

Example 9

Total value of a portfolio made up of two blocks of stock

portfolio = 0
portfolio += 150 * 2 + 1/4.0
portfolio += 75 * 1 + 7/8.0
print("portfolio", portfolio)

@Sana-Rasheed
Copy link
Owner

@alibhaig Which chapter you are referring here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants