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
Express sin P as a fraction in simplest terms.​
d1i1m1o1n [39]

Answer:

1/15

Step-by-step explanation:

sin P = ON / PN = 2/30 = 1/15

8 0
3 years ago
Read 2 more answers
What is the value of x when x/6 = 198?
docker41 [41]
Should be 1,188 , because 1,188 divided by six would be 198, hope I could help
3 0
2 years ago
Marie’s college nicki thanks with green bank. they are for savings account with a higher interest rate than blue bank. 5% and ne
kifflom [539]
The answer is $72 thats the answer
3 0
3 years ago
Orlando is doing a math problem where he needs to dilate a triangle by a scale factor of four. The ordered pairs for his pre-ima
Rainbow [258]
Dilation refers to a non rigid motion where a figure is transform and its image has the same form but a different size measure.
Dilation is define by the rule (x,y)-- (kx, ky) where k represents the scale factor.

On this exercise is given that a triangle with vertices (-2,1), (8,4), and (3,0) was dilated by a scale factor of four, and it is asked to find the vertices of the image of the triangle after the dilation occurred.

Pre-image                       Image
(-2,1)  --   (-2*4,1*4)   --   (-8,4)
(8,4)   --    (8*4,4*4)   --    (32,16)
(3,0)   --    (3*4,0*4)   --    (12,0)

The coordinates representing the vertices of the triangle's image are (-8,4), (32,16), and (12,0); meaning that the ordered pair which is not a coordinate for a point in the triangle's image is (2,1).



5 0
3 years ago
Read 2 more answers
Convert StartFraction 3 pi Over 8 EndFraction radians to degrees
dangina [55]

Answer:

67.5 deg

Step-by-step explanation:

A full circle is 2(pi) radians. It is also 360 degrees.

2(pi) radians = 360 deg

pi radians = 180 deg

3(pi)/8 rad * (180 deg)/(pi rad) = 67.5 deg

4 0
2 years ago
Other questions:
  • What is distance formula solve . (8,-3) and (4-7)
    14·2 answers
  • What two decimals are equivalent to 4.400
    5·2 answers
  • Mr. Varello is paid semimontnly. His annual salary is $64,333. What is his semimonthly
    14·1 answer
  • Solve the system of linear equations using linear combination.
    14·2 answers
  • Mary is inscribing a square in the circle shown, but she is having difficulty remembering the process. Which summary describes t
    11·1 answer
  • Can someone help me plz?
    14·1 answer
  • How do I evaluate this? there’s a picture.
    5·1 answer
  • If 24 books out of 60 are non-fiction what percent of books are fiction
    12·2 answers
  • For a triangle, m&lt;1 =75 and m&lt;3 =40 what does m&lt;2 =?​
    12·1 answer
  • Done with brainly here is 50 check my profile for explanation
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!