Python code for beginners 1

in #coding3 years ago

Here is some basic Python code for beginners:

Copy and paste this code into the latest version of Python to see what happens when it's run.

print("I am learning to code in Python")

Result:

Hopefully when the code is run, the screen will say 'I am learning to code in Python'.

Breakdown of code:

The print() function prints the specified message to the screen, or other standard output device.

Got any questions ? Simply put them in the comments.