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
ANEK [815]
3 years ago
11

The function below takes a two parameters: a list called a_list and a value called a_value. Complete the function to first check

to see if the value is already in the list. If the value is already in the list, then do nothing. Otherwise, append the value to the end of the list. Your function doesn't need to return anything.
Engineering
1 answer:
Alik [6]3 years ago
5 0

Explanation:

def checklist(a_list, a_value):// def //used to name a function, the //arguments being passed into the //functions are a_list and a_value

if a_value in list://if statement to

//check if it's in the list or not

print("")//print statement to do

//nothing

else://else statement for if the

//a_value is in a_list

a_list.append(a_value)//this adds

//the value to the list

You might be interested in
In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sid
Dovator [93]

Answer:

C++ code is explained below

Explanation:

/Remove the following line

//if not using visual studio.

#include "stdafx.h"

//Import the required header files.

#include <iostream>

using namespace std;

//Define the main function.

int main(void)

{

    //Define the variables.

    double side1, side2, side3;

    //Prompt the user to enter the sides of the triangle.

    cout << "Enter the side of the triangle:" << endl;

    cout << "Enter first side of triangle:" << endl;

    cin >> side1;

    cout << "Enter second side of triangle:" << endl;

    cin >> side2;

    cout << "Enter third side of triangle:" << endl;

    cin >> side3;

    cout << endl;

    //Check if the triangle sides are valid

    if ((side1 + side2 > side3) &&

         (side1 + side3 > side2) &&

         (side2 + side3 > side1))

    {

         //Check the condition for right angle triangle

         if ((side3*side3 == (side1*side1 + side2*side2)) ||

             (side2*side2 == (side3*side3 + side1*side1)) ||

             (side1*side1 == (side3*side3 + side2*side2)))

//Display that the triangle is right-angled triangle.

             cout << "It is a right-angled triangle." << endl;

         else

//Display that the triangle is not the right-//angled triangle.

             cout << "It is not a right-angled triangle."

<< endl;

    }

    else

         //Display not the valid side.

         cout << "Not a valid side." << endl;

    //Remove the following line if

    //not using visual studio.

    system("pause");

    return 0;

}

8 0
3 years ago
A 50-mm cube of the graphite fiber reinforced polymer matrix composite material is subjected to 125-kN uniformly distributed com
sp2606 [1]

Answer:

hello some parts of your question is missing attached below is the missing part

answer :

A) Determine changes in the 50-mm dimensions

The changes are : 0.006mm compression  in y-direction

                               0.002 mm expansion in x and z directions

B) the stress required are evenly distributed

Explanation:

<em>Given data</em> :

50-mm cube of graphite fiber reinforced polymer matrix

subjected to 125-KN force in direction 2,

direction 2 is perpendicular to fiber direction ( direction 1 ) and cube is constrained against expansion in direction 3

A) Determine changes in the 50-mm dimensions

The changes are : 0.006mm compression  in y-direction

                               0.002 mm expansion in x and z directions

B) the stress required are evenly distributed

attached below is the detailed solution

4 0
3 years ago
Tech a says the higher the numarical gear ratio (4:1), the more torque that will be applied to the wheels. Tech b says that the
Zepler [3.9K]

Answer:

Tech A

Explanation:

The amount of energy required to apply the same force with a 1:1 ratio is divided into 4, so you can apply 4 times as much force than a 1:1 ratio. efficiency and speed come into play here, but assuming the machine powering the gear can run at a unlimited RPM, 4:1 will have more force and a slower output speed than a 2:1 ratio.

3 0
3 years ago
Read 2 more answers
Those in this career install, maintain, and repair electrical wiring,
Ad libitum [116K]
I’m pretty sure it’s C and G
8 0
3 years ago
Read 2 more answers
Which option identifies the type of device the engineer will develop in the following scenario?
Stells [14]
It would be actuator
4 0
2 years ago
Read 2 more answers
Other questions:
  • R 134a enters a air to fluid heat exchanger at 700 kPa and 50 oC. Air is circulated into the heat exchanger to cool the R134a to
    6·1 answer
  • A stone-filled pit used for waste disposal is commonly referred to as a
    15·1 answer
  • Am i eating ramon nooddles rn
    10·2 answers
  • For a steel alloy it has been determined that a carburizing heat treatment of 14 h duration at 809°C will raise the carbon conce
    13·1 answer
  • Thermodynamics deals with the macroscopic properties of materials. Scientists can make quantitative predictions about these macr
    13·1 answer
  • A life cycle assessment (LCA) determines the environmental impact at all stages of a product's life cycle, including production,
    12·1 answer
  • 2. What is the most obvious elements of design?<br> O color<br> O shape<br> O line<br> O texture
    11·1 answer
  • What are the risks of biohacking? Do you think the risks of biohacking outweigh the advantages? Why or why not?
    5·1 answer
  • Instructions: For each problem, identify the appropriate test statistic to be use (t test or z-test). Then compute z or t value.
    14·1 answer
  • You need to lift a 2012 toyota highlander and haven't done so in a while. which of these are reliable sources for checking the c
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!