DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
converting bool to 1 if it has true and if it is false print 1
bool = True if bool == True: print(1) else: print(0) print()
PREVIOUS
NEXT
Tagged:
#converting
#bool
#true
#false
#print
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit