Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Elementary- Digits Multiplication solution in Clear category for Digits Multiplication by tutek1
def checkio(numbers):
numbers = str(numbers) #converts numbers into a string so it can be used in for loop
result = 1 #sets the result to 1 because if it was 0 the result would always be 0
for i in numbers: #for loop the iterates over all the numbers
if int(i) == 0: #check for 0 in set of numbers
pass
else:
result *= int(i) #if the number isnĀ“t 0 it multiplies the result with the number
return result
June 14, 2019
Comments: