My code doesn't work

Question:


Repl link:

myname = input("What's your name")

Hey @khdyjhlqsmy welcome to the forums!

Thank you for your post and sorry that you are experiencing issues. However, we may not be able to help you with this issue if you do not complete the template fields fully.

Without a code excerpt and/or the link to your Repl there won’t be much we can do to help you. A screenshot of the expected output would also be appreciated.

The more information you provide at the start, the easier it will be to identify the bug in your program.

3 Likes

If you want this variable myname to be displayed, add a line:

print(myname) 
1 Like

Assuming this is you and this is the code you want for help, I see no problem in your code
Can you tell us more about what problem or “doesn’t work” you think you are experiencing right now?

(why am I so good at finding replit ask users’ replit account even when some of them are using different account for replit and replit ask lol)

1 Like

I don’t know, probably some other languages cause his username is not english

By the way @khdyjhlqsmy , I couldn’t find any issues with your program, though I would suggest using ‘’ or “” in your print( ) statement, instead of “”" “”.

Hey @khdyjhlqsmy welcome to the forums!

If you are still having an issue, then did you change the name of your Python file (anything other than main.py). If so go to the .replit file and change the file that runs to the name of your Python file at the entrypoint.

2 Likes

my only question is:

  1. what do you want to do
  2. why is this “wrong”
3 Likes