[ad_1]
num is string.
>>> num = ( "which no. u want to check prime or not:" )
>>> num % 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
>>>
I think you missed raw_input():
>>> num = int(raw_input( "which no. u want to check prime or not:" ))
which no. u want to check prime or not:1
>>> num
1
0
[ad_2]
solved Python TypeError: not all arguments converted during string formatting