Leaving Cert Notes

Notes and Anki Decks for the Leaving Cert

Numerical Python

print(20)
Output:
20

Note: No quotes are needed for printing numbers in Python

After code is for comments

print(10+10) # Add 10 and 10
Output:
20

Note: The comment won’t show up in the output of the program

””” are for multi-line comments These are for writing comments that are paragraphs (long comment)

"""

Add 10 + 10

"""
print(10+10)
Output:
20