Write Your First Python Program

Let's keep it Simple, Start Writing Your First Program :


  • Open Your Pycharm and open a new file as python 3, it will look like :
  • If you are using it the first time, you may get the error Interpreter path is not Defined
      •  Now, let us give it a solution, In "Pycharm" go to the setting or use (Ctrl+Alt+s) key to open the settings.
      • Then, go to the project and set the path of the python interpreter
      • Close the setting after applying the setting.
  • Okay, now you are done let us start writing your first program. Just open a new file as "Python 3", it will look like this : 
    Give it a name as My first program.
  • Let us start by printing "Hello World !!", as it is the most basic thing you can start with any language.
  • Its simple, just write the code: 
  •                                                   print("Hello World !! ") 
  • and run the code from the tab or use the key(Alt+Shift+F10) and see the output it will print as "Hello World !!", it will look like this:   
                                     

Comments

Post a Comment

Popular posts from this blog

Introduction to Python

Getting Started With Basics ....