Home » » Using "Print" statement in Python (Basic Guide).

Using "Print" statement in Python (Basic Guide).

Posted by Firmware Tech on Saturday, September 22, 2018

Using "Print" assertion in Python (Basic Guide).

Python Print Function. This is a simple manual using a print declaration, although the print announcement in python appears quite simple. However many humans are nevertheless confused approximately the usage of this statement. Especially for a novice python person. The print statement is a primary command in python programming. The print announcement will print any statistics type, however most usually a string statistics kind. But any facts kind is viable to print. Now, follow this manual under to use "print" assertion in python.

Make certain python established efficiently in your computer, you could without delay python from the hyperlink below.
//www.Python.Org/downloads/release/python-2712/

Writing Python Programming.

  1. Open the text editor, for this example, we are able to use notepad from home windows.
  2. Now type this simple program list beneath.
  3. print "hiya world"print "try to use script mode"print "Namett: Andy LawnAddresstt: 15604 Alexander Rd"print 2016
    • Explanation ;

      • The String information to be displayed should be enclosed in double costs (".....")
      • Numeric information sorts may be immediately written without the quotes
      • \t used for Tab
      • \n used for a new line

  • Now, store your notepad with the following name.

    • Filename: whats up.Py
    • Save as kind: All files

  • You can keep it everywhere for your pc pressure, as an example at E:\
  • Then click on the save button

  • Execute Python.

    1. Open home windows command set off.
    2. Now, navigate spark off to drive E:\
    3. Then kind hello.Py following with press input.
    4. The result have to display the following photo beneath.
      print declaration in python
    5. Finish.


    0 comments:

    Post a Comment

    Popular Posts

    Blog Archive

    Powered by Blogger.
    .comment-content a {display: none;}