Your First Python Program
In this tutorial we are going to learn :
- Creating your first Python project.
- Print function in Python
Creating Your First Python Project
We open the Pycharm to create a new Python Project.
Step 1 ) Click “Create New Project “
Step 2 )
Location: We select the location of the Python project where we want to be created and we give a name to our Python project. Type “HelloWorld” to our Python project.
Base Interpreter: To create a project and run successfully Pycharm should found the Python interpreter you installed.
Click the “Create” button.
Step 3 ) We click our “HelloWorld” project and then “New” and “Python File “
Step 4 ) We give a name to our python file. We give “HelloWorld“
Step 5 ) We use the print function to print on the screen. Lets type print( “Hello World” ) .
Step 6 ) Click “Run” Menu on the top and then click “Run” to run your program
Step 7 ) You can see the output of the program
“print” Function in Python
We learned that we use the print function to print on the screen. print is one of the python’s functions and we are going to show you about uses of it.
You can look at the examples to learn the uses of “print” function
print("Hello World") print(1 + 3) print(6 * 7) print() print("End of it")
Output Of The Program :
Example: Strings and Numbers together.
print("Hello World") print(1 + 3) print(6 * 7) print() print("End of it", "is it ?", "keep learning about Python", 3)
Ouput Of The Program :