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
andre [41]
3 years ago
6

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

ly, not in the sense of "shortest".)

Social Studies
1 answer:
DerKrebs [107]3 years ago
6 0

Answer:

Complete Python code with explanation and output results is given below

Explanation:

A function named mymin is created which takes two arguments as input str_1 and str_2. Then using if else conditions compare them and return the smallest of them alphabetically.

To test the code, we called the function mymin three times with different inputs and each time the function mymin returned the correct values.

Python Code:

Function mymin:

def mymin(str_1,str_2):

   if str_1<str_2:

       return print("Smallest is:",str_1)

   else:

       return print("Smallest is:",str_2)

Test code:

mymin("Alpha","Beta")

mymin("Z","S")

mymin("Monday","Wednesday")

Output:

Smallest is: Alpha  

Smallest is: S  

Smallest is: Monday

(Alphabetically Alpha comes first than Beta)

(Alphabetically S comes first than Z)

(Alphabetically Monday comes first than Wednesday)

You might be interested in
In the United States, which religious group was first to condemn slavery?
Luden [163]
D) Quakers.

In April 1688, Quakers wrote a two-page condemnation of slavery and sent it to the governing bodies of the Society of Friends.
4 0
3 years ago
In order to search visitors or staff prison officials should have at least how much evidence indicating misconduct (likely, the
Ket [755]

The search of bags and pockets is a requirement for security reasons at prisons, prior to any contact a person has with someone they want to visit. This procedure is not a result of suspect or misconduct of visitors. The searches should always be done politely and in a respectful manner. But if some visitor breaks any of the prison visit rules or is a threat to prison security, this person may have their visit cut short.

6 0
3 years ago
What is the means by which the faa notifies aircraft owners and other interested persons of unsafe conditions and prescribes the
Kipish [7]

The answer is airworthiness directives.

The means by which the FAA notifies aircraft owners and other interested persons of unsafe conditions and prescribes the condition under which the product may continue to be operated is airworthiness directives.

<h3>What is an airworthiness directives?</h3>

An airworthiness directive informs owners and operators of approved aircraft that a specific model's engine, avionics, or other equipment has a known safety flaw and needs to be fixed. In accordance with 14 CFR part 39, the FAA may issue Airworthiness Directives (ADs) as legally binding regulations to address hazardous conditions in products. According to 14 CFR part 39, the definition of airworthy as provided by the FAA is airworthy means the aircraft conforms to its type design and is in a condition for safe operation.

The three types of airworthiness directives are:

  • Notice of Proposed Rulemaking ( NPRM ), which is followed by a Final Rule.
  • Final Rule; which is a request for comments.
  • Emergency ADs.

To know more about airworthiness directives, visit:

brainly.com/question/28234687

#SPJ4

3 0
2 years ago
Explain how the terms reapportion and gerrymander are related
kenny6666 [7]
Reapportionment and redistricting mean essentially the same thing. After a Census has been completed, it must be determined if a state’s government as well as that state’s county, and local governments have sufficient representatives for their population.  While Gerrymandering also means redrawing district boundaries, but it includes a lot of politics in the process.

Hope my answer would be a great help for you.    If you have more questions feel free to ask here at Brainly.
6 0
3 years ago
How did early soninke farmers contribute to the beginning of ghana?
poizon [28]

They banded together because of the nomadic herders and they rebelled against them. They didn't have direct contact with each other therefor keeping everything peaceful.

hope this helped <3

7 0
3 years ago
Other questions:
  • Using Newton's third law, which statement describes why the teacher's egg breaks when it is dropped from a height of 1 meter abo
    6·1 answer
  • The primary thing that keeps most social scientific research within ethical-moral boundaries is
    8·1 answer
  • After the assassination of Ali, power fell to the
    15·2 answers
  • Can someone please check my answers? How are the governments of Jordan and Kuwait different from the governments of the United A
    12·2 answers
  • How is the influence of the Dutch still seen in New York City today?
    13·1 answer
  • Please help i will give you brainlest!!!!!!!!!!!!!!!
    6·2 answers
  • WORTH 20 !!!! WILL GIVE BRAINLIEST!!!!
    13·1 answer
  • Who did Eugene Talmadge appeal to?​
    13·2 answers
  • What is the accumulated depreciation credit balance for this machine as of december 31, 2017?
    11·1 answer
  • Sometimes parents prefer certain labels over others and school districts frequently give parents the label they want because?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!