Wipe then off then spray them down then wipe off again
Answer:
See Explaination
Explanation:
def listmax(lst):
largest = None
for num in lst:
if largest is None or num > largest:
largest = num
return largest
mylist = [10, 20, 30]
x = listmax(mylist)
print(x)
Answer:
def scramble(s):
if len(s) % 2 == 1:
index = int(len(s)//2)
else:
index = int(len(s)/2)
return s[index:] + s[:index]
Explanation:
Create a function called scramble that takes one parameter, s
Check the length of the s using len function. If the length is odd, set the index as the floor of the length/2. Otherwise, set the index as length/2. Use index value to slice the s as two halves
Return the second half of the s and the second half of the s using slice notation (s[index:] represents the characters from half of the s to the end, s[:index] represents the characters from begining to the half of the s)
Answer:
result = pow(10,5);
Explanation:
A complete code in C++ with the necesary header file for the math class is given below:
#include <iostream>
//import the header file to use the power function
#include<cmath>
using namespace std;
int main()
{
double base = 10.0;
double result;
//Use Power function to raise base to power of 5
result = pow(10,5);
//print out the result
cout<<result;
return 0;
}