A survey stores replies as text. Most are whole numbers, like "34". Some are not, like "twenty" or "".
"34"
"twenty"
""
Write to_number(reply) that returns the reply as a whole number. If int() can't read it, return 0 instead of crashing.
to_number(reply)
int()
0
1def to_number(reply):2 # your code here3 pass4