comments in python
#this is commented
'''
this
is
also
a
comment
'''
comments in python
#this is commented
'''
this
is
also
a
comment
'''
how to add a cooment in python
#How to add a comment/multi-line comment in python
#This is a single line comment
#For a single line comment, you need to add a hashtag in python.
"""
This is the multi-line comment
You start of with triple single quotes or else you can also start with
triple doulble quotes (hope that makes sense) and then you end with triple
single quotes or triple double quotes
"""
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 """
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 comment
# Single line Comment
"""
(''' single quotes ''') will also work
Multi Line
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