1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DerKrebs [107]
3 years ago
9

BlockPy: #43.1) Dictionaries vs. Tuples Create a dictionary to store the dimensions for a box. Then, create a tuple to store the

dimensions. Finally, give an example of accessing the same value in both the dictionary and tuple representation and printing them. You should only print one value from each of the two data structures. Length: 6 Width: 8 Height: 4
Engineering
1 answer:
QveST [7]3 years ago
8 0

Answer:

#Define the dictionary.

a_dictionary = {"Length": 6,"Width": 8,"Height": 4}

#Define the tuple.

a_tuple = (6,8,4)

print("The length of the box in the dictionary is: ", a_dictionary["Length"])  

print("The length of the box in the tuple is: ", a_tuple[0])

You might be interested in
If the same amount of force were applied to all four balls in the picture, which would experience the greatest change in motion?
nydimaria [60]
There is no image connected to this question. Next time attach something to your question to get a more successful answer.
6 0
4 years ago
Read 2 more answers
In contrast to the leading-trailing drum brake system, the duo-servo drum brake system will:
prohojiy [21]

Leading/trailing shoe type drum brake This is called the servo effect (self-boosting effect) which realizes the powerful braking forces of drum brakes. ... This is because drum brakes generate the same braking force in either direction. Generally, this type is used for the rear brakes of passenger cars.

6 0
4 years ago
Write a program to control the operation of the RED/GREEN/BLUE LED (LED2) as follows: 1. If no button is pressed, the LED should
aalyn [17]

Answer:

See explaination

Explanation:

int RED=10; int BLUE=11; int GREEN=12; int BUTTON1=8; int BUTTON2=9; void setup() { pinMode(RED, OUTPUT); pinMode(BLUE, OUTPUT); pinMode(GREEN, OUTPUT); pinMode(BUTTON1, INPUT); pinMode(BUTTON2, OUTPUT); } void loop() { int BTN1_STATE=digitalRead(BUTTON1); int BTN2_STATE=digitalRead(BUTTON2); if(BTN1_STATE==HIGH) { digitalWrite(BLUE, HIGH); delay(1000); // Wait for 1 second digitalWrite(BLUE, LOW); } if(BTN2_STATE==HIGH) { digitalWrite(RED, HIGH); delay(4000); // Wait for 4 seconds digitalWrite(RED, LOW); } if(BTN1_STATE==HIGH && BTN2_STATE==HIGH) { digitalWrite(GREEN, HIGH); delay(2000); // Wait for 2 second digitalWrite(GREEN, LOW); } }

4 0
3 years ago
A suction device is being designed based on the venturi principle to lift objects submerged in water. The operating water temper
Novosadov [1.4K]

Answer:

a) the velocity of the water  at the exit for the maximum lift condition is 3.62m/s

b)  the discharge through the system for maximum lift condition is 0.00326m³/s

c)  the maximum load the suction can support is 8.85KN

Explanation:

the explanation has  been attached below , check for better understanding of the answers given above.

3 0
3 years ago
How do all the cars work to move?
Lunna [17]

Answer:

converting the potential chemical energy of gasoline into kinetic energy at the wheels

Explanation:

A car moves by converting the potential chemical energy of gasoline into kinetic energy at the wheels. This is done by a process of burning gasoline, which produces expansion of gas and exhaust of waste gases.

5 0
2 years ago
Read 2 more answers
Other questions:
  • A cylindrical hot water storage tank (see sketch) for a set of collectors is located in the basement of a dwelling. The tank is
    13·1 answer
  • Using Python, have your program do the following, using loops (no recursion)
    5·1 answer
  • What range does creep occur in? A)Elastic, B)Plastic, C)Transition D)Temperature range from room to 200 degrees?
    14·1 answer
  • What is the specific volume of oxygen at 40 psia and 80°F?
    10·1 answer
  • Write a C program that will update a bank balance. A user cannot withdraw an amount ofmoney that is more than the current balanc
    13·1 answer
  • A solid shaft is subjected to an axial load P = 200 kN and a torque T = 1.5 kN.m. a) Determine the diameter of the shaft if the
    8·1 answer
  • In a creep test, increasing the temperature will (choose the best answer) A. increase the instantaneous initial deformation B. i
    5·1 answer
  • Pin supports, such as that at A, may have horizontal and vertical components to the support reaction. Roller supports, such as t
    14·1 answer
  • Diameter is a measure of .......
    10·1 answer
  • What type of fire extinguisher is used for electrical fires.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!