You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add this code after taking user input to prevent error and it will show appropriate "invalid input" message
try:
value = float(input(f"Enter value in {from_unit}: "))
except ValueError:
print("Please enter a valid number!")
continue