Using Impress Disceptation Inwards Python (Basic Guide).

Using "Print" disceptation inwards Python (Basic Guide).

Python Print Function. This is a uncomplicated conduct using a impress statement, although the impress disceptation inwards python looks really simple. but many people are nevertheless confused almost using this statement. Especially for a beginner python user. The impress disceptation is a basic dominance inwards python programming. The impress disceptation volition impress whatever information type, but most oft a string information type. But whatever information type is possible to print. Now, follow this conduct below to role "print" disceptation inwards python.

Make certain python installed correctly on your computer, you lot tin straight python from the link below.
https://www.python.org/downloads/release/python-2712/

Writing Python Programming.

  1. Open the text editor, for this case, nosotros tin role notepad from windows.
  2. Now type this uncomplicated programme listing below.
  3. print "hello world" impress "try to role script mode" impress "Name\t\t: Andy Law\nAddress\t\t: 15604 Alexander Rd" impress 2016
    • Explanation ;

      • The String information to live on displayed must live on enclosed inwards double quotes (".....")
      • Numeric information types tin live on straight written without the quotes
      • \t used for Tab
      • \n used for a novel line

  • Now, salve your notepad amongst the next name.

    • Filename: hello.py
    • Save every bit type: All files

  • You tin salve it anywhere on your reckoner drive, for instance at E:\
  • Then click the salve button

  • Execute Python.

    1. Open windows dominance prompt.
    2. Now, navigate prompt to crusade E:\
    3. Then type hello.py following amongst press enter.
    4. The result should demonstrate the next movie below.
      This is a uncomplicated conduct using a impress disceptation Using Print disceptation inwards Python (Basic Guide).
      print disceptation inwards python 
    5. Finish.