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
Acceptance of a public offer by anyone, as indicated by the performance of the act, results in?
Greeley [361]

Acceptance of a public offer by anyone, as indicated by the performance of the act, does not result in an enforceable contract. Silence does not indicate assent to an offer, even if both parties agree beforehand that this is to be the means of acceptance.

An enforceable contract is a written or oral agreement that can be enforced in court. If the law permits the performance of a contract, the performance of the contract is the obligation of the consenting parties. You may not breach or violate any terms without voiding the contract.

Examples of enforceable contracts allow two or more people to legally compel one party to do something to the other party. When entering into agreements or contractual obligations. An enforceable contract must contain both an offer by one party and an acceptance by the other party.

Learn more about enforceable contracts here

brainly.com/question/22410251

#SPJ4

7 0
1 year ago
"when eliminating bias isn’t fair: algorithmic reductionism and procedural justice in human resource decisions," organizational
Georgia [21]

The study of human behaviour in organisational contexts, the interface between human behaviour and the organisation, and the organisation itself are all included in the term "organisational behaviour" or "organisational behaviour."

<h3>What is meant by organizational behavior?</h3>

The study of human behaviour in organisational contexts, the interface between human behaviour and the organisation, and the organisation itself are all included in the term "organisational behaviour" or "organisational behaviour." Organizational behaviour is the study of how individuals interact with one another within a group, such as a company. These contacts consequently have an impact on the performance and behaviour of the organisation as a whole.

Organizational behaviour, at its heart, examines how social and environmental factors influence how individuals or groups of people function. The effectiveness of an organisation depends heavily on how its members interact, communicate, and work together.

Understanding study bias enables readers to independently and critically assess the scientific literature and steer clear of therapies that may be ineffective or even hazardous. Evidence-based medicine requires a detailed grasp of bias and how it influences study results.

The complete equation is,

"when eliminating bias isn’t fair: algorithmic reductionism and procedural justice in human resource decisions," organizational behavior and human decision processes, 160, 149–67. True or False.

To learn more about organizational behavior refer to:

brainly.com/question/16835247

#SPJ4

7 0
1 year ago
Subjectivist ethical theories would fit best with the claim or doctrine that values of what is morally right or wrong are like _
zhuklara [117]

Answer: flavors of ice cream

Explanation: Subjectivism theory sees values of what is morally right or wrong like the "flavors of ice cream" i.e values of what is right or wrong is just a matter of what one personally prefers.

This theory holds that there is nothing like objective moral truth and and the only standard of judgement should be that of individuals rather than communal i.e the standard of judgement should be the individual moral conscience.

5 0
3 years ago
Which theory holds that language shapes our thoughts and perceptions to such an extent that people who speak languages that lack
Bas_tet [7]

Answer:

c. Linguistic determinism hypothesis.

Explanation:

The linguistic determinism hypothesis is also known as the Sapir-Whorf hypothesis. According to this theory, the language we speak determines our thought processes - such as memorization, categorization, and perception - and influences our social reality. Therefore, people who grow up speaking different mother tongues may have a hard time expressing their ideas in other languages. Their ideas and perceptions of the world are connected to the language they speak.

The Sapir-Whorf theory is used in the movie "Arrival", in which a linguist's cognitive processes are deeply enhanced by learning and immersing in an alien language.

4 0
3 years ago
While having dinner with his boss, james recalls his first interview with his boss. he recounts that he had lunch with his boss
Alexeev081 [22]
The correct answer is episodic memory.

Episodic memory refers to an individual's unique and personal (autobiographical) memory of a certain event, experience or situation in his or her life. In this instance, James's memory of his first interview with his boss is an episodic memory because it is a memory of something James personally experienced. Another example of an episodic memory is remembering the day, time and sequence of events that occurred when you broke a bone. 
7 0
3 years ago
Other questions:
  • A term used to characterize the relationship between suppliers and customers when a high degree of linkages and interdependencie
    10·1 answer
  • A multinational corporation operates in __________.
    7·2 answers
  • Computer scored Unit Test
    11·1 answer
  • Alaina is an associate director in a medical research facility. Alaina goes out of her way to help her employees, especially if
    10·1 answer
  • Harappa was one of the centers of the Indus Valley Civilization. The other, located about 350 miles away, was Mohenjo-daro. Thes
    9·2 answers
  • Which geographical region generally served as
    10·1 answer
  • !!PLEASE HELPP!! While reading difficult content, it is best to focus on a small section of material.
    14·2 answers
  • Shantel is traveling from the United Kingdom to France, Italy, and Russia. Based on the information in the chart, what will MOST
    15·1 answer
  • What is the difference a satire and an ode?
    9·1 answer
  • The diary of Anne Frank
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!