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.
- Open the text editor, for this case, nosotros tin role notepad from windows.
- Now type this uncomplicated programme listing below.
- 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
print "hello world" impress "try to role script mode" impress "Name\t\t: Andy Law\nAddress\t\t: 15604 Alexander Rd" impress 2016
- Filename: hello.py
- Save every bit type: All files
Add your comment