We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
shares= 150 price= 3 + 5.0/8.0 value= shares * price print("value",value)
portfolio = 0 portfolio += 150 * 2 + 1/4.0 portfolio += 75 * 1 + 7/8.0 print("portfolio", portfolio)
The text was updated successfully, but these errors were encountered:
@alibhaig Which chapter you are referring here?
Sorry, something went wrong.
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: