Using "Print" statement in Python (Basic Guide).
Python Print Function. This is a simple manual the usage of a print declaration, even though the print assertion in python appears very simple. however many humans are still confused about using this announcement. Especially for a novice python person. The print assertion is a basic command in python programming. The print assertion will print any facts type, however most often a string facts kind. But any records kind is possible to print. Now, observe this manual below to apply "print" announcement in python.
Make certain python hooked up successfully on your computer, you may without delay python from the hyperlink underneath.
//www.python.org/downloads/launch/python-2712/
Writing Python Programming.
- Open the text editor, for this situation, we are able to use notepad from windows.
- Now kind this easy program list beneath.
print "hello world"print "attempt to use script mode"print "Namett: Andy LawnAddresstt: 15604 Alexander Rd"print 2016
- Explanation ;
- The String information to be displayed must be enclosed in double charges (".....")
- Numeric statistics types can be directly written with out the quotes
- \t used for Tab
- n used for a new line
Now, keep your notepad with the subsequent name.
- Filename: hello.py
- Save as kind: All files
You can keep it anywhere in your computer power, as an example at E:Then click on the save button
0 comments:
Post a Comment