PYTHON SYNTAX _1/14

Hello World!

If programming is the act of teaching a computer to have a conversation with a user, it would be most useful to first teach the computer how to speak. In Python, this is accomplished with the print statement.
print "Hello, world!" print "Water—there is not a drop of water there! Were Niagara but a cataract of sand, would you travel your thousand miles to see it?"
                                                                                                                                                           

print statement is the easiest way to get your Python program to communicate with you. Being able to command this communication will be one of the most valuable tools in your programming toolbox.


  1. Using a print statement, output a message of your choosing to the terminal.

2 comments:

Powered by Blogger.