num1 = float(input("Enter your first number: "))
num2 = float(input("Enter your second number: "))
while True:
try:
num = int(input("Enter your age: "))
break
except ValueError:
print("That's not a number!")
x = 0
sum = 0
while x < 10:
sum = sum + x
x = x + 1
print(sum)
What’s wrong with this code?