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".)

Answers

Answer 1

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)


Related Questions

According to the Insurance Institute of America, a family of four spends between $400 and $3,800 per year on all types of insurance. Suppose the money spent is uniformly distributed between these amounts. If we select a family at random, what is the probability they spend less than $2,000 per year on insurance per year? (Round your answer to 4 decimal places.)

Answers

Answer:

0.471

Step-by-step explanation:

Calculation for the probability that they spend less than $2,000 per year on insurance per year

First step is to find the base

Base =$2,000-$400

=$1,600

Second step is to find the probability using this formula

P=1/b+a×base

Where,

b represents $3,800

a represents $400

base represents $1,600

Let plug in the formula

P=1/$3,800-$400×$1,600

Hence,

P=1×$1,600/$3,800-$400

P=$1,600/$3,400

P=0.471

Therefore the probability that they spend less than $2,000 per year on insurance per year will be 0.471

Hi can any one please help me I really need help please help me I need help

Answers

Answer:

1(a)1,030,000+0.13x

(b)$1,030,026

2. (a)Base and Index

(b)See Explanation

Ste-by-Step Explanation

(a)Total Amount to be paid to the four actors

=500,000+(300,000+0.02x)+(150,000+0.03x)+(80,000+0.08x)

Collect like terms

=500,000+300,000+150,000+80,000+0.02x+0.03x+0.08x

[tex]\text{Total Amount Paid= }1,030,000+0.13x[/tex]

(b)When x=200

[tex]\text{Total Amount Paid= }1,030,000+0.13(200)\\=1,030,000+26\\=$1,030,026[/tex]

Question 2

(a)The two parts of a power are the base and index.

Take, for example, the expression: [tex]a^b\\[/tex]

[tex]a$ is the base\\b is the index[/tex]

Another example using numbers is: [tex]10^3[/tex]

In this case:

[tex]10$ is the base\\3 is the index[/tex]

(b)Like terms are terms that have the same letter/variable attached to them.

For example, the following pairs are like terms

8x and 3x4y and -9y6pq and pq3 and 3

These, however, are not like terms

3 and 3y4x and 4y

What is the result of substituting for y in the bottom equation?

y = x + 3

y= x2 + 2x-4

A. x+ 3 = x2 + 2x - 4

B. X+ 3 = x2

C. y= (x+3)2 + 2(x + 3) - 4

D. y= x2 + 2x - 4 - (x+3)

Answers

Answer:

(A)[tex]x + 3= x^2 + 2x-4[/tex]

Step-by-step explanation:

Given the equations:

[tex]y = x + 3\\y= x^2 + 2x-4[/tex]

Substitution simply means replacing the variable y in the second equation with its equivalent x+3 from the first equation.

Substitution of y into [tex]y=x^2 + 2x-4[/tex] gives us:

[tex]x + 3= x^2 + 2x-4[/tex]

The correct option is A.

After the first 4 quizzes, Ron’s quiz average is an 87. There are two quizzes remaining for the quarter and the maximum score for any individual quiz is 100. What is the minimum grade Ron can score on one of these two quizzes and still score high enough on the other so that the final quiz average of the six quizzes is at least a 90?

Answers

Answer:

Minimum = 92 ; maximum =100

Step-by-step explanation:

Total number of quizzes = 6

Number of completed quizzes = 4

Number of quizzes left = 2

Average score on completed quizzes = 87

Target average = 90

Maximum score for any individual quiz = 100

Current total score on the 4 quizzes to obtain an average of 87:

87 * 4 = 348

To obtain an average of 90:

Total score must in the six quizzes must be :

90 * 6 = 540

Therefore total score needed in the remaining 2 quizzes to attain an average of 90:

540 - 348 = 192

Since the highest attainable score is 100:

Maximum score Ron can attain on one quiz = 100

Minimum he can attain in the other = 192 - 100 92 in other to score an average of 90 in the six quizzes.

A bicycle manufacturing company makes a particular type of bike. Each child bike requires 4 hours to build and 4 hours to test. Each adult bike requires 6 hours to build and 4 hours to test. With the number of workers, the company is able to have up to 120 hours of building time and 100 hours of testing time for a week. If c represents child bikes and a represents adult bikes, determine which system of inequality best explains whether the company can build 20 child bikes and 6 adult bikes in the week. (2 points)

Answers

Answer:

4 (20) + 6(6) = 120

4(20) + 4 (6) = 100

Step-by-step explanation:

Hi, to answer this question we have to write a system of equations with the information given:

Build time (hours) = 4c + 6a = 120

Test time (hours) = 4c + 4 a = 100

Where c represents the number of child bikes and a represents adult bikes.

So, for 20 child bikes and 6 adult bikes:

4 (20) + 6(6) = 120

4(20) + 4 (6) = 100

Feel free to ask for more if needed or if you did not understand something.

Find the volume of the cylinder

Answers

Answer:

see below

Step-by-step explanation:

The volume of a cylinder is given by

V = pi r^2 h

We know the radius is 9 and the height is 20

V = pi  ( 9)^2 ( 20)

V = 1620 pi

If we approximate pi by 3.14

V =5086.80 cm^3

If we approximate pi by pi button

V =5089.3800099 cm^3

Answer:

V=5089.380099cm^3

Step-by-step explanation:

V=πr^2h

V=π(9)^2(20)

V=π(9)^2(20)

V=5089.380099cm^3

H(x)=4x-2;find h(-9)

Answers

Answer: h(-9)=4*(-9)-2=-36-2=-38

-38 is ur answer

Answer:-38

Step-by-step explanation:h(x) =4x -2

H(-9)

substitute for x using -9

H(-9) =4x -2

4(-9) -2

-36-2

H(-9) =-38

What is true about the domain and range of the function?
The graph of the function f(x) = (x +2)(x + 6) is shown
below.
у
6
The domain is all real numbers, and the range is all
real numbers greater than or equal to 4.
O The domain is all real numbers greater than or equal to
4, and the range is all real numbers.
O The domain is all real numbers such that -65x3-2,
and the range is all real numbers greater than or equal
to-4.
The domain is all real numbers greater than or equal to
4, and the range is all real numbers such that -63x3
-2.
4
N
-6 -4 +2
4
6
х
N
-2-
-4
6t

Answers

Answer:

The correct option is;

The domain is all real numbers and the range is all real numbers greater than or equal to -4

Step-by-step explanation:

A function defines an output given an input and the set of all the possible inputs to a function is the domain of a function such that there is an output, such that the domain is the set of x values which are points on the curve of the function

The set of outputs that are produced from a given input is the range of a function

The given function is f(x) = (x + 2)(x + 6)

From the curve we see that the minimum y-coordinate, f(x), value is at -4, which is the lower bound of the range, while the x-coordinate values, the domain can be seen extending past the graph sheet which from the expression for the function also (f(x) = (x + 2)(x + 6)) indicates that the x values is the set of all real numbers (on the number line)

Therefore, the correct option is;

The domain is all real numbers and the range is all real numbers greater than or equal to -4.

Answer:

The domain is all real numbers and the range is all real numbers greater than or equal to -4

Step-by-step explanation:

Solve each system by the addition method.
x + 2y = -1
5x - 4y = 16
Put your answer in ordered pair (x, y) DECIMAL form.

Answers

Answer:

(x, y) = (2, -1.5)

Step-by-step explanation:

x + 2y = -1

5x - 4y = 16

<=>

(2)x + (2)2y = (2)(-1)

5x - 4y = 16

<=>

2x + 4y = -2

5x - 4y = 16

<=>

7x = 14

<=>

x = 2

(*)x + 2y = -1

=> 2 + 2y = -1

=> 2y = -3

=> y = -1.5

=> (x, y) = (2, -1.5)

The equation of a circle is given below. ( x + 8 3 ) 2 + y 2 = 1 (x+ 3 8 ​ ) 2 +y 2 =1left parenthesis, x, plus, start fraction, 8, divided by, 3, end fraction, right parenthesis, squared, plus, y, squared, equals, 1 What is its center? ( (left parenthesis , ,comma ) )right parenthesis What is its radius? If necessary, round your answer to two decimal places. units

Answers

Answer:

The center  is (-8/3,0) and the radius is 1

Step-by-step explanation:

(x+8/3)^2 + y^2 = 1

We know the equation of a circle is given by

(x-h)^2 + (y-k)^2 = r^2 where (h,k) is the center and r is the radius

Rewriting

(x- -8/3)^2 + (y-0)^2 = 1^2

The center  is (-8/3,0) and the radius is 1

Select the correct answer from each drop-down menu. Polygon ABCDE rotates 45° clockwise about point F to form polygon FGHIJ, shown in the figure. Find the measure of each angle of polygon ABCDE. m∠ABC = ° m∠BCD = ° m∠DEA = ° m∠CDE = °

Answers

Answer and Step-by-step explanation:

As it is mentoned in the question

Polygon ABCDE rotates around point F in clockwise direction to create polygon FGHIJ

And as we can see in the figure that

So we conclude that

A = F ⇒ 117°

B = G ⇒ 90°

C = H ⇒ 127°

D = I ⇒ 90°

E = J ⇒ 117°

Therefore this is the answer and the same is to be considered

Answer:

m∠ABC = 90117127°m∠BCD = 90117127°m∠DEA = 90117127°m∠CDE = 90117127°

Step-by-step explanation:

Find the surface area of the prism.
Help please

Answers

Answer:

256 in ^2

Step-by-step explanation:

The area of the base B = 12*5 = 60 in ^2

The height is 14 inches

The perimeter of the base is

2 ( l+w) =2 ( 12+5) = 2 ( 17) = 34

The surface area  is  = 2B + Ph = 2 * 60 + 34*4

                                                    = 120 + 136

                                                    =256

Given: In ΔBLU, LE ⟂ BU , and BL ≅ UL Prove: ΔBEL ≅ ΔUEL STATEMENT REASON 1. LE⟂ BU and BL ≅ UL 1. Given 2. LE ≅ LE 2. Reflexive Property 3. ΔBEL ≅ ΔUEL 3. _______________ Which of the following choices will complete the reasoning for statement #3? A SSA B AAA C HL D None of these choices are correct.

Answers

Answer:

I think it is C

Step-by-step explanation:

2 Points
What is the measure of ZE, in degrees?

Answers

Answer:

B. 84 deg

Step-by-step explanation:

Sides DE and FE are congruent since they both have the same length.

That makes angles D and F congruent.

m<D = m<F = 48

The sum of the measures of the angles of a triangle equals 180 deg.

m<E + m<D + m<F = 180

m<E + 48 + 48 = 180

m<E = 84

John is filling a bathtub that is 12 inches deep. He notices that it takes two minutes to fill the tub with three inches of water. He estimates it will take 10 more minutes for the water to reach the top of the tub if it continues at the same rate. Is he correct?

Answers

Answer:

No

Step-by-step explanation:

2 = 3 inches

2x5=10

10 = 3x5 of 15 inches

so no and it would take 8 minutes to fill up the tub

The numbers -1/5 and -5 are 'negative reciprocals.' True or False?

Answers

Answer:

False

Step-by-step explanation:

The negative reciprocal of -1/5 would be 5, and the negative reciprocal of -5 is 1/5. A way to double-check is all negative reciprocals add to -1.

-1/5 + -5= -5 1/5

Hope this helps and you understand negative reciprocals more for future problems ahead.

Trey is running for president of the chess club, and he received 8 votes. There are 80 members in the club. What percentage of the club members voted for Trey?

Answers

Answer:10

Step-by-step explanation:

8/80=1/10*100=10

what is the method and answer for brainliest

Answers

Equal steps mean each number is the same distance from the previous one

From -2 to 28 is 28 units

There are 4 spaces between the numbers

28/4 = 7

Each number is in increase of 7

-2 + 7 = 5

5+7 = 12

12+7 = 19

19+7 = 26

The third number would be 12

Write as an expression: Twice the product of the squares of x and y Thanks! -Jamie

Answers

Answer: [tex]2(xy )^{2}[/tex]  the same thing as 2([tex]x^{2} y^{2}[/tex])

Step-by-step explanation:

You multiply 2 by x times y squared.

what is the solution to this equation x/5=30

Answers

Answer:

x= 150

Step-by-step explanation:

X/5 = 30

x = 5×30

x= 150

Answer:

150

Step-by-step explanation:

[tex]\frac{x}{5}[/tex] = 30

→ Multiply both sides by 5 to isolate x

x = 150

Find the point-slope equation for the line that passes through the points (-8,-32) and (3,1). Use the first point in your equation.

Answers

Hey there! :)

Answer:

y + 32 = 3(x + 8)

Step-by-step explanation:

Begin by finding the slope of the line using the slope formula:

[tex]m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}[/tex]

Plug in the coordinates of the points into the equation:

[tex]m = \frac{1 - (-32)}{3 - (-8)}[/tex]

Simplify:

[tex]m = \frac{33}{11}[/tex]

m = 3.

Point-slope form is:

y-y₁=m(x-x₁)

Plug in the coordinates of the first point, as well as the slope:

y - (-32) = 3(x - (-8)

y + 32 = 3(x + 8)

Answer:    y+32=3(x+8)

Step-by-step explanation:

First  you need to find the slope.The slope is the change in y divided by the change in x values.

-32 - 1 = -33

-8 - 3 =    -11  

-33/-11 = 3   the slope is 3  

and in point-slope form is  like y-b= m(x-a) where b is a y coordinate and a is the x coordinate.

it could be like   y-1=3(x-3) or y+32= 3(x+8)

the illumination due to a source of light varies directly as the strength of the source and inversely as the square of the distance from the source. two sources are 6 meters apart and one of them is 8 times stronger than the other. at what distance from the weaker source on the line segment joining them is the illumination the least

Answers

Answer:

Point is at x = 4 m

Step-by-step explanation:

From the question, we can write the formula for intensity as;

I = strength/distance²

Now,

- Let x be the position from the stronger source

- Let k be the strength of the weaker light source

- 8k will be the strength of the stronger light source.

We are told that the two sources are 6 meters apart and one of them is 8 times stronger than the other.

Thus, the total illumination is;

I(x) = (8k/x²) + k/(6 - x)²

Using chain rule to get the critical points, let's find the first derivative and equate to zero;

I'(x) = -16k/x³ + 2k/(6 - x)³ = 0

Adding -16k/x³ to both sides, we have;

2k/(6 - x)³ = 16k/x³

Cross multiply to get;

2kx³ = 16k(6 - x)³

Dividing both sides by 16k to give;

x³/8 = (6 - x)³

Taking cube root of both sides to give;

x/2 = 6 - x

Multiply both sides by 2 to give;

x = 12 - 2x

x + 2x = 12

3x = 12

x = 12/3

x = 4 m

Write the equation of the line that passes through (1,5) and (-2, 14) in slope-intercept form

Answers

Answer:

y = -3x + 8

Step-by-step explanation:

(1, 5)  ; (-2, 14)

[tex]Slope=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\\\\=\frac{14-5}{-2-1}\\\\=\frac{9}{-3}\\\\=-3[/tex]

m = -3   ; (1 , 5)

Equation: [tex]y-y_{1}=m(x-x_{1})[/tex]

y - 5 = (-3)(x - 1)

y - 5 = -3x + 3

y = -3x + 3 + 5

y = -3x + 8

NEED HELP ASAP!! RESPOND AS QUICK AS POSSIBLE!!!

Answers

Answer:

d

Step-by-step explanation:

google

Find the median, divide it by 3 20, 82, 39, 23, 20, 60, 64.

Answers

Answer:

by using formula of median you can do it.

Answer:

put the numbers in order

20,20,23,39,60,64,82

Find the number in the middle

39 is in the middle because there is 3 numbers on each side so it is the median.

Divide by 3.

39 / 3 = 13

Hope this helps

Step-by-step explanation:

The temperatures of Charleston, South Carolina on May 3rd are recorded in the table below. Determine the equation that models this data.

Answers

Answer:

Ok, the first step to see the behavior of this data is doing a graph of it,

So we can see that it looks like an reversed V. (at the bottom of the answer you can see the graph)

Then, we can model this with a piecewise function like:

For the first part we can take the two pairs:

if 11 am is our t = 0h

(0, 85) and (6, 93)

then the linear equation

y = a*t + b

a = (93 - 85)/(6 -0) = 8/6.

and b = 85.

then the linear equation is:

y = (8/6)*t + 85. for 0h ≤ t ≤ 6h

The second part of this equation can be modeled with the points

(6, 93) and (11, 84)

then we have:

y = s*t + c

s = (84 - 93)/(11 - 6) = -7/5

and we can find the value of c as:

93 = (-7/5)*6 + c

93 + (7/5)*6 = 101.4

then this second part is:

y = (-7/5)*t + 101.4 for 6  ≤ t ≤ 11h

then, in conclusion we have:

         y = (8/6)*t + 85. for 0h ≤ t ≤ 6h

f(x) =

         y = (-7/5)*t + 101.4 for 6  ≤ t ≤ 11h

Answer:

y=7.496sin(0.3243x+0.315)+73.489

Step-by-step explanation:

simply put the data into a graph and graph each equation to see if its matched

The U.S. Census reports Native Americans by Group of answer choices one tribe only or in combination with another tribe plus in combination with any other race. one tribe only, one tribe only or in combination with another tribe, and one tribe only or in combination with another tribe plus in combination with any other race. one tribe only. one tribe only or in combination with another tribe. one tribe only and one tribe only or in combination with another tribe

Answers

Answer:

one tribe only or in combination with another tribe plus in combination with any other race.

Step-by-step explanation:

United States Census Bureau (USCB) is the governmental agency saddled with the responsibility of providing data about the citizens of America and her economy. The Census Bureau was founded on the 1st of July, 1902 and has its headquarter in Suitland, Maryland, United States of America.

The U.S. Census reports Native Americans by one tribe only or in combination with another tribe plus in combination with any other race.

Native Americans are the indigenous people (citizens) of the United States of America and they are also known as the American Indians. The Census Bureau reports them by one tribe only such as Cherokee, Apache, Hopi, Chinook etc or in combination with another tribe such as Aleuts, Tlingit, Chenega, etc plus in combination with any other race such as Black Americans, Asian Americans, White Americans, Native Hawaiian etc.

In this activity, you will use equations to represent this proportional relationship: Olivia is making bead bracelets for her friends. She can make 3 bracelets in 15 minutes. Find the constant of proportionality in terms of minutes per bracelet.

Answers

Answer:

If she makes 3 bracelets in 15 minutes the constant of proportionality is 15/3 = 5 minutes per bracelet.

Answer:

5 minutes

Step-by-step explanation:

Did she can make 3 bracelets in 15 minutes then you have to divide 15/3 to get the number of minutes she can make one bracket. Therefore your answer would be 5 minutes per bracelet.

Hope this helps!

What is the graph of the system y = -2x + 3 and 2x + + 4y = 8?

Answers

Answer:what are you solving it by

Step-by-step explanation:

You own a comic book store. When you order comic books for your store to sell, you get 18 comic books per bundle. How many comic books would you have to sell if you ordered 7 bundles?

Answers

Answer:

the answer is 126

Step-by-step explanation:

beacuse if you sell 7 bundles for every one you get 18 so 18+18+18+18+18+18+18=126

Answer:

126 books

Step-by-step explanation:

There are 18 books per bundle and 7 bundles

So you would multiply 7 with 18 and get your answer of 126 books to sell

Other Questions
1. Calculate the child support for a noncustodial parent earning $7.25 per hour withtwo children. (Federal income tax - $42.00, S.S. - 6.2%, Medicare - 1.45%) Nine years ago the Templeton Company issued 15-year bonds with a 12% annual coupon rate at their $1,000 par value. The bonds had an 8% call premium, with 5 years of call protection. Today Templeton called the bonds. Compute the realized rate of return for an investor who purchased the bonds when they were issued and held them until they were called. Round your answer to two decimal places. Please answer this ASAP. Maribel is building rectangular pens for her dogs, as shown below. She will fence the entire rectangular area with 78m of fencing. What dimensions enclose the total maximum area. Show your work? A gold vault has 3 locks with a key for each lock. Key A is owned by the manager whilst Key B and C are in the custody of the senior bank teller and the trainee bank teller respectively. In order to open the vault door at least two people must insert their keys into the assigned locks at the same time. The trainee bank teller can only open the vault when the bank manager is present in the opening.i) Determine the truth table for such a digital locking system (4 marks)ii) Derive and minimize the SOP expression for the digital locking system If other factors are held constant, which set of sample characteristics is most likely to reject a null hypothesis stating that m How would 5 1/4 be written as a percent? A. 0.0525 B. 0.525% C. 5.25% D. 525% Examples of cash equivalents include all of the following except: a. U.S. Treasury bills. b. notes issued by major corporations (referred to as commercial paper). c. currency and coins. d. long-term notes receivable. Express the numbers as a product of its prime factors . Give ur answer in power form Which structures produce the male gametes? A. testes B.penis C.scrotum D.vas deferens WHOEVER ANSWERS THIS CORRECTLY ILL MARK YOU AS BRAINLIEST Which line from "totality like whatever, you know?" represents the poets ability to apply proper use of syntax? Options You have to speak with it, too. I have nothing personally invested in my own opinions, okay? That we've just gotten to the point where it's just, like... Whatever! Even when those sentences aren't, like, questions? You know? 1.Find the other endpoint of the line segment with the given endpoint and midpoint.Endpoint 1: (9,8) Midpoint: (2,1)2.Find the other endpoint of the line segment with the given endpoint and midpoint.Endpoint 1: (0,2) Midpoint: (4,5) Complete the following paragraph using the verbs in the word bank. Be sure to conjugate each verb using the correct preterite form. divertirse | dormirse | pedir | servir Anoche Julio y Juan Carlos enter answer mucho mirando un video de Disney. Mientras lo miraban, el nio enter answer un refresco y su padre le enter answer una Coca-Cola. Ms tarde el nio enter answer en el sof. Fill in the green box. Fill in the blank with the most appropriate word.Si tengo gripe, no tengoA. fiebreB. inyeccinC. tosD. escalofros if f(x) = 2x-1 and g(x) =3x + 5, what is the f(g(5) A current carrying wire is oriented along the y axis It passes through a region 0.45 m long in which there is a magnetic field of 6.1 T in the z direction The wire experiences a force of 15.1 N in the x direction.1. What is the magnitude of the conventional current inthe wire?I = A2. What is the direction of the conventional current in thewire?-y+y A 3.00-g sample of an alloy (containing only Pb and Sn) was dissolved in nitric acid (HNO3). Sulfuric acid was added to this solution, which precipitated 2.93 g of PbSO4. Assuming that all of the lead was precipitated, what is the percentage of Sn in the sample? (molar mass of PbSO4 = 303.3 g/mol) Assume that the acceleration due to gravityon the surface of the moon is 0.2 times theacceleration due to gravity on the surfaceof the earth. If R, is the maximum range ofa projectile on the earth's surface, what isthe maximum range on the surface of themoon for the same velocity of projection Select the correct text in the passage.Which sentence best shows that striving toward personal fulfillment is an ongoing process?Maslow's Hierarchy of NeedsMaslow's hierarchy' of needs states that people have a range of needs that are like the rungs of a ladder. These needs range from basicrequirements, such as food and shelter, to higher level needs, such as a sense of belonging. To reach the highest level of needs on the ladder, aperson must first fulfill the needs below them. The highest level of need is self-actualization, or wishing to achieve one's full potential. This needis different from the other levels in a crucial way. All the lower levels are needs that must be satisfied; but once they are satisfied, we no longerthink about them. If we feel well fed, safe, appreciated, and confident, we don't think about those needs anymore. But on the complex level ofself-actualization, a person continues to feel this need even after achieving it. This need drives us to be the most complete people we can be tobe the best that we can be.1. hierarchy. a classification or grouping of people or things arranged in order of importanceResetNextmentum. All rights reserved. True or False?2+3x=5If x is 1.1?