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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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