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
aleksley [76]
3 years ago
7

Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identif

y which kind of argument is which.
Computers and Technology
1 answer:
Blizzard [7]3 years ago
8 0

Answer:

Example 1:

def function(num):  

   print(num*2)

Example 2:

function(5)

num = 2

function(num)

function(3-1)

Explanation:

Given:

See attachment for complete question

To start with Example (1)

def function(num):  

   print(num*2)

<em>Note that; the above code segment which doubles the parameter, num could have been any other code</em>

<em />

<em>In Example (1), the parameter is num</em>

For example (2):

We can call the function using:

#1. A value:

function(5)

<em>In #1, the argument is 5; a value</em>

#2. A Variable

num = 2

function(num)

<em>In #2, the argument is num; a variable</em>

#3. An Expression

function(3-1)

<em>In #3, the argument is 3-1; an expression</em>

You might be interested in
What is the most used gaming keyboard in 2022?
Mademuasel [1]

Answer:

Razer Huntsman v2 Analog

Explanation:

I have done some research on this before.

8 0
3 years ago
Which of the following types of networks encrypts data for transmitting over
vova2212 [387]

Answer:a

Explanation:

3 0
3 years ago
A hydraulic lift has a mechanical advantage of 5. If the load weighs 350 N, what effort is required to lift the weight? Provide
Dmitrij [34]

If the load weighs 350 N, the effort that is required to lift the weight is 70 N

To answer the question, we need to know what mechanical advantage is.

<h3>What is mechanical advantage?</h3>

The mechanical advantage of the hydraulic lift M.A = L/E where

  • L = load and
  • E = effort.
<h3>Effort required to lift the weight</h3>

Making E subject of the formula, we have

E = L/M.A

Given that

  • M.A = 5 and
  • L = 350 N,

substituting the values of the variables into the equation, we have

E = L/M.A

E = 350 N/5

E = 70 N

So, the effort that is required to lift the weight is 70 N

Learn more about mechanical advantage here:

brainly.com/question/26440561

#SPJ1

7 0
3 years ago
14. Emelia is very concerned about safety and has conducted a study to determine how many bike helmets were replaced at each loc
damaskus [11]

Answer:

Explanation:

Known Variables A = max Daily Rentals

X = Damaged helmets %

lets find the formula to calculate Helmets per location :taking 1st row as an example.

412 = B - (B*13/100)

412 = (100B-13B)/100

412*100 = 87B

B= 412*100/87

Hence, the generic formula becomes : B= A*100/(100-X)

Applying the same formula for each row and then using ROUND function of excel to round off the digits

=ROUND(number,digits) where number is the number you would like to round off and the digits is the number of decimal digits for it to round off. Since we want natural numbers in our example, we will be using digits as 0.

Explanation:

See attached pictures also.

5 0
4 years ago
Read 2 more answers
Assume that the variable myString refers to a string. Write a code segment that uses a loop to print the characters of the strin
Svetach [21]

Answer:

hi my name is antonette Jane S pascua please help me my question thank you for your answer

5 0
3 years ago
Other questions:
  • Sleeping is an effect of _______ , but agitation may cause a person to wake up
    7·2 answers
  • Are there protections for people in terms of what data can be collected by different sites?
    10·1 answer
  • Which of the following is where you can save, select a template, change document properties, and close or exit excel?
    8·1 answer
  • Scientific models can be used for a variety of different purposes. Which of the following statements about scientific models is
    7·2 answers
  • Rachel wants to post content from digital cameras on the web. Which online tool will help Rachel to post and edit content on a w
    5·1 answer
  • [c++] Write a recursive function takes a word string as input argument and reverse the word. Print out the results of recursive
    14·1 answer
  • What helps companies and organizations to target masses of people, provide 24/7 services, and deliver better marketing in a chea
    6·1 answer
  • Compter History Large Resume Include: the beginnings of the computer and its development during the years The events of computer
    10·1 answer
  • A program that will accept the ages of girls and boys and calculate the total and average age​
    15·1 answer
  • Why is my computer fans making weird noises?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!