Each number call that contains a value (2,4,8) will output "Clap", if not "No clap"
Call
def clapping (number)
def clapping (772)
output:
"Clap"
I made the program, but it seems something is wrong. Can I ask for help to check which is wrong
import re
def clapping(number):
return "Clap" if re.findall("[248]+",number) else "No Clap"
print(clapping(779))