Thank you for your reply. I am getting the same error.
[b]Traceback (most recent call last): File "python", line 18, in <module> File "python", line 18, in <listcomp> ValueError: invalid literal for int() with base 10: '-'[/b]After this my goal is to make the program print "False" when it detects other user inputs like these "5497.3571,7063*2130".So i must exclude dots,commas and asterisks,and weird inputs like these "54 97357 170632 130"