This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
It is used to signify the absence of a value in many situations, e.g., it is returned from functions that don’t explicitly | |
return anything. | |
""" | |
print 'None - Its truth value is False.' | |
bottle = None | |
if not bottle: | |
print 'This proves that the truth value of None is False' | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import psycopg2 | |
import sys | |
con = None | |
query = '' | |
try: | |
if len(sys.argv) == 6: | |