How can I keep asking the user to enter valid input until the user enters an integer and non-zero figure for y-value? I'm still practicing While Loop and it would be great if you could help me.
Thank you in advance!
x = 5
y = 0
while y == 0 or y (is not integer??):
try:
z = x/y
except ZeroDivisionError:
y = int(input('You cannot divide with "0".\nTry using a number bigger than 0 for y-value.'))
else:
print(f'dThanks for placing the right value for y. \nYour result is {z}')
break
finally:
print('All Done')