I wanted my program to check if the code was a valid number A valid number in my case is :123, 43.76, 89, 100000, 78765.987 etc. infinite NoN_valid_number: 123abc, 7.9.8, afadf, *&^dadsf ... etc
- How do I implent this in python
y = 11SS # it doesnt let me input this value and I get an error
if type(y) == int or float:
print('valid')
else:
print('non valid')