Depends on the test to be honest.Also the job you are working for or want.
Answer:
Explanation below
Explanation:
It should be understood that sub-sahara African countries are the countries that are found below the sahara region. And some of them are Gambia, Ghana, Benin,Burkina Faso, Eritrea, Nigeria and so on.
The incidence of having no access to safe drinking water has brought a lot of problems to this region. For example, most of their citizens are exposed to epidemic of diseases or infections which are water borne such as cholera, typhoid among others. And this has made their government to divert the money which can be used for other developmental projects in treating those infected. Also making use of those money to provide safe drinking water for them.
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)