Hello world in Pycharm
In the previous tutorial, we have installed python and
First “Hello world” Program:
- Open Pycharm and click on “Create New Project”
Provide the location where you want to create the project. Pycharm will find the python interpreter you have installed earlier.
Right click on project name => New => Python File
Give name “hello_world” and click OK
Write simple program -> print(“Hello World!!!”)
Go to Run=> Run and then select the file name
Check the output into the run console. We can see the output “Hello World!!!”
Now, what if you don’t have
Go to the directory where the python file is located. Then run
It will produce the output as below
Apart from this, you can also use python in interactive mode as below:
You have successfully
That's all for this topic. If you guys have any suggestions or queries, feel free to drop a comment. We would be happy to add that in our post. You can also contribute your articles by creating contributor account here.
Happy Learning 🙂
About the Author
Comments and QueriesIf you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
<pre><code class="java"> String foo = "bar"; </code></pre>For more information on supported HTML tags in disqus comment, click here.