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 :: python log file 
Python :: python - extract the price from a string 
Python :: python enumerate unique values 
Python :: how to find the cosine in python 
Python :: pickling python example 
Python :: turtle.write("Sun", move=False, align="left", font=("Arial", 8, "normal")) 
Python :: how to find a prime number 
Python :: slicing tuples 
Python :: python beautifulsoup xpath 
Python :: pie chart maptlotlib larger labels 
Python :: self in python 
Python :: size of set python 
Python :: convert a string into a list 
Python :: python basic flask web 
Python :: numpy array deepcopy 
Python :: remove vowels in a string python 
Python :: how to remove an element from dictionary using his value python 
Python :: openpyxl get value from readonly cell 
Python :: turtle graphics documentation|pensize 
Python :: dataframe cut based on range 
Python :: can serializer returns an object in django 
Python :: best ide for python 
Python :: missing data in python 
Python :: matplotlib despine 
Python :: how to use if else in python 
Python :: python dash log scale button 
Python :: python string iterate 3 characters at a time 
Python :: is in array python 
Python :: merge keep left index 
Python :: write python 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =