PYTHON TUTORIALS

Print Function Exercise Answer Key

Answer Key

  1. company = 'XYZ Corporation'
  2. stock_price = 14.50
  3. stock_exchange = 'NASDAQ'
  4. print('The Stock Exchange has Opened!')
  5. print('The Buying and Selling Process wil Begin NOW!')
  6. print(f'{company}'s Stock Price is opening at ${stock_price} on the {stock_exchange}.')