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)
1. Founded
2. Devoted
3. Benefited
4. Eventually
5. Transform
6. Innovation
<span>She can remember about seven items, with the number ranging from five to nine. The function of short term memory is to store bursts of information for a short duration of time. A phone number has seven digits, and that is a perfect example of the use of short term memory. People given a phone number can usually store it and recall it several minutes later, but in a week, they will forget.</span>
Answer:
1. Fighting terrorism will bring the peace and harmony around the world, people will get together both emotionally and economically. In such a case, America will be able to expand their economy beyond the current extent.
2. By advancing democracy and human rights people of the country will be able to raise their voice against any injustice and true form of democracy will prevail. It will enhance the society overall.
3. Shaping the global economy can only be done by a country like America which have both intelligence and man power. It will make America, the leader of the world.