fbpx
skip to content

How to Print your name in Python

1. Open the PyCharm Editor installed on your system. An introductory screen will show up on your system.

2. Click on “Create New Project” for creating your first project and starting to code in Python.

3. Select the location where you wish the project is to be created. You can change the name to something meaningful such as “MyFirstProject” or “NewProject”. Click on “Create”.

4. Next, go to the “File” menu and click on “New”. Click on the option “Python File”.

5. A pop-up window will appear where you can enter the filename.

6. Next, type the program.

name=input(‘Enter your name:’)
print(‘Your name is ‘+name)

7. Next, go to the “Run” menu and select “Run” for running the program. The shortcut for this is Alt+Shift+F10.

8. The output of the program will be displayed at the bottom of the screen.

Output:
This code will ask

>>Enter your name: Coder
Your name is Coder

Please enter your email address to receive your cart as a PDF.