Can't understand why uts not 😞😞 , showing syntex error ,i still can't figure it out what's wrong...#help_me_out #sololearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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'​)

25th Apr 2022, 5:18 AM
Dipesh Rangwani
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.
25th Apr 2022, 6:26 AM
Ipang
0
Also, make your indentation consistent - very important in Python - and ask yourself the purpose of that break statement
25th Apr 2022, 12:07 PM
Emerson Prado
Emerson Prado - avatar
0
Emerson Prado ji dhanyawad gandu ji
25th Apr 2022, 12:11 PM
Dipesh Rangwani
0
Dipesh Rangwani One more hint: write in a language the receiver can read...
25th Apr 2022, 12:22 PM
Emerson Prado
Emerson Prado - avatar
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 🙂
25th Apr 2022, 12:26 PM
Dipesh Rangwani