+ 2
Can't understand why uts not 😞😞 , showing syntex error ,i still can't figure it out what's wrong...#help_me_out #sololearn
a=int(input('enter no. ')) for i in range(2,a//2+1): if a%i==0: print(a,'is not prime number') break else: print(a,'is prime number')
5 Answers
+ 2
Your code is poisoned by invalid characters which prevents the code from being processed. It's a common issue from copy/paste text from/to different programs.
You'll have to clean them up first, before you can expect the code to run.
0
Also, make your indentation consistent - very important in Python - and ask yourself the purpose of that break statement
0
Emerson Prado ji dhanyawad gandu ji
0
Dipesh Rangwani One more hint: write in a language the receiver can read...
0
Emerson Prado ab ky hindi me likhu code bhi ... Ok babaji , sure i will , upvote se ek batch milta h isliye questions dala aap toh gyan dene lage 🙂