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 codingbat.com #
 
PREVIOUS NEXT
Tagged: #boolean #meaning #python
ADD COMMENT
Topic
Name
2+9 =