Scripts_of_Python_Programming_Book icon indicating copy to clipboard operation
Scripts_of_Python_Programming_Book copied to clipboard

problim in ex number 8,9

Open alibhaig opened this issue 3 years ago • 1 comments

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)

alibhaig avatar Jan 05 '22 09:01 alibhaig

@alibhaig Which chapter you are referring here?

Sana-Rasheed avatar Jan 06 '22 09:01 Sana-Rasheed