Getting Started with Python Programming using PyCharm IDE

Hello Everyone,

This is saif, working on a Research based Project and writing this tutorial titled as “Getting Started with Python Programming using PyCharm IDE”. This article is for beginners who want to get their journey started in programming world using Python Programming language. It will also be helpful for those who are already familiar with some other programming language and want to learn Python.

After basic introduction to Python and PyCharm, this article will guide step by step how to write first program in Python using PyCharm as an IDE. Let’s Begin.

Basic Introduction of Python and Pycharm

Python is open-source, general-purpose, high-level, dynamically typed programming language. Python files have .py extension.

User friendliness and Simple Syntax makes Python best for Programmers especially beginners, to learn and understand it quickly.

Applications

Python is one of the most widely used programming language having its applications in different areas:

  • Back-end web development
  • Data analysis
  • Artificial intelligence
  • Scientific computing
  • Productivity tools, games, and desktop applications

IDEs  (Integrated Development Environments) Used for Python

  • PyCharm
  • PyDev with Eclipse
  • Eric Python
  • Spyder Python
  • Netbeans (python plugin)
  • Visual Studio (python tools)

PyCharm

We will use PyCharm as an IDE in this tutorial. PyCharm is a full featured IDE for Python provided by JetBrains. It is designed for programmers, to provide all the tools you need for productive Python development. It will facilitate you with the following features:

  • Intelligent Python Assistance
  • Web Development Frameworks
  • Scientific Tools
  • Remote Development Capabilities

Getting Started with PyCharm

  1. Download and install Python from herepython1
  2. Download and install PyCharm from heredownload-pycharm
  3. Open PyCharm and Create a new Project Either from Welcome Screen python2
  4. Or from menu bar: File -> New Projectpython5
  5. Name Your Project and Select the Version “Python35” from drop-down if there are more than one.python3
  6. After you have successfully created a project, you will see something similar to this.python4
  7. Right Click on “MyFirstProject” and create a new Python Package.python6
  8. A python file named as “_init_.py” will be automatically created. Delete this file.python7
  9. Right Click on Project and create a new Python File. Give it name “HelloWorld.py”python8
  10. To print something on screen, “print” function is used. Copy and paste these lines of code to you editor.
    print("Hello, This is my First Program in Python")python9
  11. Now, Run you program by pressing Alt+Shift+F10 or select “Run” from menu bar at the top.python10
  12. Select “HelloWorld.py” from the options if it prompts to select and Click Run.python11
  13. You will see the following output on your screenpython12
  14. Use the following code to take input from user.
    name = input("Enter your Name:")
    print("Hello", name, ", have a Nice Day :)")
  15. Run the program and see the output.python13

Congratulations 🙂
We have successfully created and executed our first Python Program using PyCharm as an IDE. You are currently using Trial version of PyCharm. You can get a Licensed version for FREE  from JetBrains Student Package. To grab this Read this tutorial that guides step by step how to register your PyCharm for FREE.

Stay with Protorials for more tutorials.
Have a nice day!

 

Advertisements

3 thoughts on “Getting Started with Python Programming using PyCharm IDE”

  1. Excellent introduction on PyCharm. I am a huge fan of JetBrains products and have been an Intellij user for over a year now. I’m strongly considering purchasing PyCharm. Do you think it’s worthwhile?

    Like

    1. Thank you for reading the article and appreciating it.
      I would recommend pyCharm for python programming because of its IntelliSense (auto-complete) and pip integration features.
      If you are enrolled in an educational institute, you can get it free of cost using institute’s email address. Here is one more tutorial for that.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s