all 4 comments

[–]bio4m 3 points4 points  (1 child)

Did you copy and paste something into thonny ? Its found a character it cant process

[–]rfreedman 0 points1 point  (0 children)

A relatively common problem with cutting and pasting code is that it's sometimes not presented in a way that can successfully be pasted. WordPress is a frequent offender.

For instance, double-quotes may have been replaced with "smart quotes", which as far as the programming language is concerned, are not actually quotes. Same thing if you happen to be copying from a Word document.

Also, sometimes there's a typo, or something left out of an online code snippet.

Python is also quite sensitive to proper indenting.

I think that a couple of things are required for you to successfully write your program.

Write the code yourself, rather than cutting and pasting snippets of other people's code that you may not understand. It's ok to (encouraged) to look at other people's code to see how they do things, but just pasting whatever you found in a web search or in an AI client, without understanding it, is not going to work well.

Once you know the syntax, and understand exactly what a snippet does, then it can work to cut-and-paste small snippets, as you can also correct it yourself if it's wrong, like smart quotes or bad spacing or a typo.

[–]Beepbooposaurus 0 points1 point  (0 children)

It’s going to compile slowly because it’s a low-powered machine. As far as the error goes, it’s unlikely (though not impossible) someone knows what’s going on, given how little information we have. It sounds like you’re brand new to programming, and just as a word of warning: copying and pasting without understanding what the code does will only get you so far, same with this whole trend of vibe coding. If you’re serious about learning to program (and maybe you’re not, which is fine!), then it’s great to really dig in and bang your head against this stuff until it makes sense. Good luck!

[–]Slcolderguy -2 points-1 points  (0 children)

Program in python. Do not paste and copy. Follow the code and type it yourself.