BYTESBRAIN (@mougli)

BYTESBRAIN (@mougli)

Santa Clara University

ONE MORE ROUND:)

3Followers
0Following
3Helped

what is the square root of 69

√69 = 8.3066238629181 AFTER ROUNDING OFF ≈ 8.3 SO 8.3 IS THE APPROPRIATE SQUAR...

Create a new dictionary called prices_stocks using {} format like the example below.

 

prices_stocks={}

Put these values in your prices_stocks dictionary:

  • "banana": [4,5]
  • "apple": [2,2]
  • "orange": [1.5,2.5]
  • "pear": [3,4]

So the key of dictionary is name of item and value is a list (first element of that list is stock and second element is relevant price)

Loop through each key in prices_stocks, for each key, print out the key along with its price and stock information. Finally calculate how much you earn if you sold all of your products. Print the answer in the following format:

 

Part-1:

Item: banana Stock: 4 Price: 5

Item: apple Stock: 2 Price: 2

Item: orange Stock: 1.5 Price: 2.5

Item: pear Stock: 3 Price: 4

If you sold all of your items you earn 39.75

## PYTHON PROGRAM prices_stocks = {}prices_stocks["banana"] = [4,5]prices_stoc...

c++ code to print "MY NAME IS ARINDAM DUTTA AKA DINDAM"

c++ code to print "MY NAME IS ARINDAM DUTTA AKA DINDAM": #include<iostream&...

Solve the Program :

Addition of two numbers in python.

## PYTHON PROGRAM TO ADD 2 NUMBERS: number1 = input("Enter Number 1:") //takin...

 How to define a class in C++?

CLASSES IN C++: class Classname{ //first keyword class followed by classname (...

A plastic light pipe has an index of refraction of 1.54. For total internal reflection, what is the minimum angle of incidence if the pipe is in the following media?

(a) air
 °

(b) water
 °
we know that Snell's law gives the degree of refraction between the angle of i...