HelloWorld - Python

From TRCCompSci - AQA Computer Science
Revision as of 13:16, 19 June 2018 by Admin (talk | contribs) (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:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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