Hydrometeorological Quality Control
Prompt
write a quality control of daily rainfall values in python
Answer guidance
Canonical solution (function body): if not string: return '' beginning_of_suffix = 0 while not is_palindrome(string[beginning_of_suffix:]): beginning_of_suffix += 1 return string + string[:beginning_of_suffix][::-1]
Drag to resize
Drag to resize
Drag to resize
Drag to resize