Difference between revisions of "HelloWorld - Python"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "=Writing to the Screen= The first command you will need to learn for Python is the 'print()' command. This will do exactly as you would expect, it prints text to the screen:...")
(No difference)

Revision as of 13:16, 19 June 2018

Writing to the Screen

The first command you will need to learn for Python is the 'print()' command. This will do exactly as you would expect, it prints text to the screen:

print("anything as long as it is between the quotes")

Now to write HelloWorld to the screen we will need to use:

print("HelloWorld")

Remember Python is case sensitive so it is important to be precise with your coding