[Solved] Python TypeError: not all arguments converted during string formatting
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 … Read more