Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Use of Pass

# "pass" is a function that basically does nothing.
# it can be used to ignore an error in a try block.

i = input("Please enter any character")
try:
  int(i)
except ValueError:
  pass

# it can also be used if you plan to implement certain code later

def attack():
  #implement actual attack code later
  pass

# a substitute for pass is to print nothing
print()
Comment

PREVIOUS NEXT
Code Example
Python :: find low and high in string 
Python :: pandas split coordinate tuple 
Python :: <function chr(i, /)> error in python 
Python :: pandas read float numbers with coma 
Python :: let in python 
Python :: custom Yolo object detection python 
Python :: libraries used in ANN with Keras Sequential Model 
Python :: python how to find index of an element in a 2d list 
Python :: python integrated with activeX 
Python :: pyjone location 
Python :: turn off slip in frozen lake openai gym 
Python :: python cgi get raw post data 
Python :: dask dataframe csv tutorial 
Python :: appending hdf5 files 
Python :: python - matching people based on city 
Python :: pyhton how to chnge colour of graphs 
Python :: url namespaces for django rest router urls 
Python :: save file in windows hidden folder python 
Python :: iterating over the two ranges simultaneously and saving it in database 
Python :: python program using for for the fibonacci number 
Python :: Horizontal bar graph OO interface 
Python :: how to use methods defined within class 
Python :: multiple delimiters pandas 
Python :: what is te meaning of nested in python 
Python :: off to obj python 
Python :: pandas query return column 
Python :: vidgear python video streaming 
Python :: # check built-in function using dir() 
Python :: django qurry 
Python :: python online compiler with libraries 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =