8000 problim in ex number 8,9 · Issue #3 · Sana-Rasheed/Scripts_of_Python_Programming_Book · GitHub
[go: up one dir, main page]

Skip to content

problim in ex number 8,9 #3

@alibhaig

Description

@alibhaig

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0