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
kobusy [5.1K]
3 years ago
12

Write a function min that has two str parameters and returns the smallest. (Smallest in the sense of coming first alphabetically

, not in the sense of "shortest".)
Mathematics
1 answer:
matrenka [14]3 years ago
7 0

Answer:

The function written in python is as follows

def min(str1,str2):

     if str1 < str2:

           return str1

     else:

           return str2

Step-by-step explanation:

This line defines the function min, along with two parameters str1 and str2

def min(str1,str2):

This line checks if str1 is less than str2

if str1 < str2:

If yes, the function returns str1

 return str1

If otherwise,

else:

The function returns str2

 return str2

Take for instance

str1 = "abc"

str2 = "cba"

The function will return str1 because str1 is less than str2 in the sense that the first letter of str1 (a) is less than the first letter of str2 (c)

You might be interested in
What is the answer of 17 and 16 ​
Vera_Pavlovna [14]

Answer:

c)

Step-by-step explanation:

16) Cost price = Selling price  * 100 / (100- loss%)

= 800 * 100 / 80 = 10*100 = 1000

Loss = Cost Price - Selling price = 1000 -800 = 200

6 0
3 years ago
Plz help what’s the answer
Maslowich

Answer:

a. 192 b.60 c. 184, 164, 350

Step-by-step explanation:

a.Total of males=88+104

b.Female, Anaerobic=156-96

c. aerobic= 88+96=184

anaerobic=104+60

total=192+158

8 0
3 years ago
se necesita llenar un galon de agua,en 2 litros se tarda 30 minutos.cuantos litros me hacen falta para completar el galon y cual
mariarad [96]

Answer: 1.78 L are needed to complete the gallon and it will take 29.66 min to completely fill it

Step-by-step explanation:

The question in english is:

A gallon of water needs to be filled, in 2 liters it takes 30 minutes. How many liters do I need to complete the gallon and what is the time it takes me to fill it?

We know 1 gallon is equal to 3.78 liters:

1 gal=3.78 L

In addition, we are told you have filled the gallon with 2 L at a rate of \frac{2 L}{30 min}=0.06 L/min.

So, if we want to know how many liters are left to completely fill the gallon, we have to sbstract the 2 L to the total amount of a gallon:

3.78 L-2 L=1.78 L This is the amount you need to complete the gallon

On the other hand, the rate is defined as:

rate=\frac{Liters}{time}

Isolating time:

time=\frac{Liters}{rate}

Then, if we input the 1.78 L we need to fill the gallon we will have the time:

time=\frac{1.78 L}{0.06 L/min}

time=29.66 min This is the time you need to fill the gallon

6 0
3 years ago
The question, Find the image vertices for a dilation with center (0, 0) and a scale factor of 4.
Alexeev081 [22]

Answer:

Answer is A(-3/4, 1/4), B(1,3/4), C(1/2,3/4) D(1/4,1)

Step-by-step explanation:

From the attached diagram, the coordinates are:

A(-3,1), B(4,-3), C(2,3), D(1,4)

The image is gotten by dividing the coordinates by the scale factor 4 to get the above answer

4 0
3 years ago
Explain how to find the orginal and the new dimensions of an object when the scale changes
yan [13]

Answer:

To find the original dimensions, write a proportion with the scale as the first ratio and the scale dimension compared to the actual dimension as the second ratio. Use cross products to solve. To find new dimensions, write a proportion with the new scale as the first ratio and the scale dimension compared to the actual dimension as the second ratio. Use cross products to solve.

5 0
3 years ago
Other questions:
  • What is the solution set
    6·1 answer
  • Mr. Dewalt suggested contacting a travel agent to see whether they could get a lower price. The agent found a price that was 30%
    14·1 answer
  • Is a game in which the cost to play equals the expected values of winning.
    6·2 answers
  • F(x) = x2 -2x &amp; g(x) = 12-8x.<br> Find f(2) - g(3)
    15·1 answer
  • Raul has 56 bouncy balls. he puts three times as many balls into red gift bags as he puts into green gift bags. if he puts the s
    12·2 answers
  • Round 38,496 to nearest thousand
    10·1 answer
  • If angle a measured 55 degrees then,how much does angle b measure?
    10·1 answer
  • Can someone please help me find the range
    11·1 answer
  • `find the equatifindon of tangent and normal of parabola y²=16ax at point whose coordinate is -5a. ​
    14·2 answers
  • Help please i’m giving away 15 points math grade 7
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!