Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input()
- c = s.count(',')
- if c > 1:
- print('Not is float')
- else:
- test = True
- for i in range(len(s)):
- if (i > 0):
- if ((s[i] > '9')or(s[i] < '0'))and(s[i] != ','):
- test = False
- if test:
- print('Is float')
- else:
- print('Is not float')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement