Python Cheat Sheet
Best Python Cheat Sheet PDF:
https://websitesetup.org/wp-content/uploads/2020/04/Python-Cheat-Sheet.pdf
DevLorenzo
Best Python Cheat Sheet PDF:
https://websitesetup.org/wp-content/uploads/2020/04/Python-Cheat-Sheet.pdf
def foo():
"""
This is a function docstring
You can also use:
''' Function Docstring '''
"""
a = 1 # initialization
>>> spam = 'Hello'
>>> spam
'Hello'
>>> print('What is your name?') # ask for their name
>>> myName = input()
>>> print('It is good to meet you, {}'.format(myName))
What is your name?
Al
It is good to meet you, Al
>>> a = [1, 2, 3]
>>> if a:
>>> print("the list is not empty!")