Answer:
a. input={4,4}
b. input={3,6,6}
c. input={7,8,8,4}
d. input={5,7,7,4,4}
e input={4,6,6,7,9,9}
Explanation:
First understanding the method in the method we are iterating over array upto the second last element and in the loop we are checking that the current element is less than then next array element if it is less then we are assigning the value of next element to the current element.So the outputs are stated above according to the method execution.
C. Mantle would be correct
Answer:
user_string = input("Input a string : ")
output = user_string.isnumeric()
if output == True:
print("yes")
else:
print("no")
Explanation:
- First of all check whether user input have all numeric value or not
.
- Display yes if string contain all numeric values
.
- Display no if string contain at least one non - integer character
.