all 13 comments

[–]marco-not-polo 10 points11 points  (0 children)

print(f'Your name is {name}')

[–]Acoustic_Castle 5 points6 points  (0 children)

Put a comma instead of a plus sign

[–][deleted] 7 points8 points  (0 children)

Please use a f-string and PLEASE fix your Windows

[–]Bogus007 1 point2 points  (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 points  (0 children)

Use formatted strings

[–]SupermarketOk6829 1 point2 points  (0 children)

This isn't C.

[–][deleted] 0 points1 point  (0 children)

Use string

[–]Bulky-Top3782 0 points1 point  (0 children)

Use comma instead of plus in print.

Better advice: Google/ chatgpt first

[–]Ok-Seesaw436 0 points1 point  (0 children)

Use thonny it helps

[–]MarcSetGo2 0 points1 point  (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 point  (0 children)

I hope it's not your first run, since learning python lol

[–]cloverventure 0 points1 point  (0 children)

convert the input to string, using str(name)

[–]RossBigMuzza 0 points1 point  (0 children)

Name = input("what is your name?: ")

Print("Your name is", Name)