comments in python
#this is commented
'''
this
is
also
a
comment
'''
comments in python
#this is commented
'''
this
is
also
a
comment
'''
python comments
# this is a single line comment, python ignores these
foo = "bar" # can be placed after code
"""
python doesnt have multiline comments
so multiline strings do the tricks
this works because python ignores string literals that arentassigned to a varaible
"""
# comments can be used as notes for the dude editing the script
comment in python
# This is a one line comment
"""
This is a comment for multiple lines,
as you can see
"""
""" But also this is valid """
how to make a comment in python
#Single Line Comments!
"""
multiline
comments
!
"""
python comments
# Numpy-style python comments for functions
def foo(param_1=True):
"""Example function.
Parameters
----------
param_1 : bool, optional
The first parameter (default is True)
Returns
-------
num
a number
"""
return -1
python comments
#A single line comment, also known as an end of line comment.
"""This is a longer
multiline comment.
"""
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us