Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

boolean meaning in python

# Booleans are simply just True and False
# Example: The "true" below is considerd as a bool.
x = True
print(x) # << This will print "True" because we have set x
# to True. If we change the value of x to False, it would print false.
# Keep in mind the the T in True and the F in False ALWAYS have to be capital.
# Or else it won't work.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #boolean #meaning #python
ADD COMMENT
Topic
Name
8+9 =