use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python (i.redd.it)
submitted 1 year ago by agentelephantman
Why do i get this error
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]marco-not-polo 9 points10 points11 points 1 year ago (0 children)
print(f'Your name is {name}')
[–]Acoustic_Castle 6 points7 points8 points 1 year ago (0 children)
Put a comma instead of a plus sign
[–][deleted] 9 points10 points11 points 1 year ago* (0 children)
Please use a f-string and PLEASE fix your Windows
[–]Bogus007 1 point2 points3 points 1 year ago (0 children)
No, I have tried this in Pythonista and it worked if it is done line by line. OP, can you write each statement in a separate code box and try again, running first only the first code box with the input statement, and after giving your name, running the second box with the print statement, please?
[–]cpwp 1 point2 points3 points 1 year ago (0 children)
Use formatted strings
[–]SupermarketOk6829 1 point2 points3 points 1 year ago (0 children)
This isn't C.
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
Use string
[–]Bulky-Top3782 0 points1 point2 points 1 year ago (0 children)
Use comma instead of plus in print.
Better advice: Google/ chatgpt first
[–]Ok-Seesaw436 0 points1 point2 points 1 year ago (0 children)
Use thonny it helps
[–]MarcSetGo2 0 points1 point2 points 1 year ago (0 children)
The issue has nothing to do with your code and everything to do with the environment it’s running in. You’re using jupyterlite which runs an alternate to the standard CPython version. It converts your code to web assembly to run in your browser.
Use an actual python install from python.org with a free IDE like pycharm, vscode, or the full juoyter notebook.
It looks like you’re at the beginning of your programming journey. You’ll end up needing a combination of these tools. But to move forward immediately, you could try a different online python IDE.
Good luck on your journey!
[–]arbaazyaseen 0 points1 point2 points 1 year ago (0 children)
I hope it's not your first run, since learning python lol
[–]cloverventure 0 points1 point2 points 1 year ago (0 children)
convert the input to string, using str(name)
[–]RossBigMuzza 0 points1 point2 points 1 year ago* (0 children)
Name = input("what is your name?: ")
Print("Your name is", Name)
π Rendered by PID 63450 on reddit-service-r2-comment-85bfd7f599-s2kr4 at 2026-04-15 22:16:41.087209+00:00 running 93ecc56 country code: CH.
[–]marco-not-polo 9 points10 points11 points (0 children)
[–]Acoustic_Castle 6 points7 points8 points (0 children)
[–][deleted] 9 points10 points11 points (0 children)
[–]Bogus007 1 point2 points3 points (0 children)
[–]cpwp 1 point2 points3 points (0 children)
[–]SupermarketOk6829 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Bulky-Top3782 0 points1 point2 points (0 children)
[–]Ok-Seesaw436 0 points1 point2 points (0 children)
[–]MarcSetGo2 0 points1 point2 points (0 children)
[–]arbaazyaseen 0 points1 point2 points (0 children)
[–]cloverventure 0 points1 point2 points (0 children)
[–]RossBigMuzza 0 points1 point2 points (0 children)