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
A local business needs more trainees who are highly proficient in math and language skills. in keeping with the current trend, t
Stolb23 [73]
Offering training in specific areas
7 0
3 years ago
A paper company needs to ship paper to a large printing business. The paper will be shipped in small boxes and large boxes. The
Tanzania [10]

x+y=23 and 10x+24y=426 can be used to determine the number of small and large boxes shipped where x represents the number of small boxes and y represent the number of large boxes.

Step-by-step explanation:

Given,

Volume of small box = 10 cubic feet

Volume of large box = 24 cubic feet

Total boxes shipped = 23

Combined volume = 426 cubic feet

Let,

x represent the number of small boxes.

y represent the number of large boxes.

x+y=23    

10x+24y=426

x+y=23 and 10x+24y=426 can be used to determine the number of small and large boxes shipped where x represents the number of small boxes and y represent the number of large boxes.

Keywords: linear equation, addition

Learn more about linear equations at:

  • brainly.com/question/11258952
  • brainly.com/question/11343416

#LearnwithBrainly

6 0
3 years ago
Becca bikes for 1 hour and 5 minutes.
olga nikolaevna [1]

Answer: 6.25

Step-by-step explanation: Subtract 1hr 5mins from 7.30

5 0
2 years ago
(05.01)Which statement best describes the area of the triangle shown below?
cluponka [151]
Area of triangle = 1/2 bh =1/2(4)(4) = 8 

answer
Area of triangle  = 8 square unit
6 0
3 years ago
I need help converting 25 oz to g
GenaCL600 [577]

Answer: 708.738 because 1 oz = 28.35 grams

25 x 28.35 = 708.738

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • An architect is designing a building. Each floor will be 12 feet tall. If the architect is designing a building that is 132 feet
    10·1 answer
  • Is 1/4 gallon less than, equal to, or greater than 1.1 qts?
    15·1 answer
  • The mat at the park is 30 feet wide. The mat is 6 feet longer than its wide. What is the area of the mat?
    12·1 answer
  • What is m 41 167 117 111
    6·1 answer
  • HELPppppp PLeaasee!?!!?!
    15·1 answer
  • HELPPP PLEASE YOU’LL GET 10 POINTS
    6·2 answers
  • Honon spent 3 1/4 hours on homework while Sequoia spent 2 5/6 hours on homework. How much more time did Honon spend on homework
    15·1 answer
  • hunter plans to borrow $5,500 from the back to purchase a used vechicle. if he borrows the money at a rate of 3% interest for 4
    12·1 answer
  • The Shirts For All shop keeps track of the total number of white and tie-dye t-shirts it sells. In one week, 500 shirts were sol
    14·2 answers
  • HELP...............<br> BRAINLIEST FOR THE FIRST PERSON WHO ANSWERS
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!