Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python big comment

# one hashtag for a single line comment

"""
3 quote marks is technically
a docstring, but it works as
a multi line comment
"""

##pressing 'Alt 3' in IDLE comments out
##what you are selecting
and 'Alt 4' to uncomment

if False:
  print('Hello') # yes you can do it at the end of a line
  you can technically put if False around code you dont want it to run,
  but that would mean it has to have correct syntax,
  and would not be good for readability.
Comment

big comments python

# One line Comment
myvar = 5 # Can also start after any chunk of code

"""
Big multiple lines comment
So many lines
WoW
"""
Comment

PREVIOUS NEXT
Code Example
Python :: index of max in tensor 
Python :: how to convert a byte array to string in python 
Python :: python do something before exit 
Python :: how to get decimal part of a double in python 
Python :: printing float number python 
Python :: ipython.display install 
Python :: python remove nan rows 
Python :: Insert missing data in pandas 
Python :: numpy drop duplicates 
Python :: python input 
Python :: numpy flatten 
Python :: dir template 
Python :: how to change background of tkinter window 
Python :: python naming conventions 
Python :: Configuring Django to Send Emails with mailgun 
Python :: unique id python 
Python :: How to draw a rectangle in cv2 
Python :: arch linux python 3.7 
Python :: isnumeric python 
Python :: addition in python 
Python :: video streaming flask 
Python :: append to pandas dataframe 
Python :: convert excel file to csv with pandas 
Python :: python raise and exit 
Python :: check if string is empty python 
Python :: # Take user input in python 
Python :: convert pandas dataframe/ table to python dictionary 
Python :: read page source from text file python 
Python :: How to Get the Difference Between Sets in Python 
Python :: pyserial example code 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =