First Program to use print function

    I hope that you all have installed python 3.7 on your machine(computer/laptop).
   For writing the code,just go to Start-> IDLE->write single line code.

       print("Hello World")
      If u want to write multiple line code
      FILE -> New->code->save with .py
      Now,In python print() is an in-built function like printf() in c Language and println("") in java.

   

  • print is an in-built function in Python's  Library.
  • It's  Syntex  is print("Hello World")
  • Here Hello World is a string.It always written in Single quote(' ') or Double quote(" ").
  • We read about String later in another chapter
NOTE: Don't forget to write the extension .py while Saving the file.

Comments

Popular posts from this blog

Pre-defined Function in python

Comments in Python