Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

one line if statement python without else

x = 1 > 0 # (True/False)
print(x)
#------------------------------------------

if (1 > 0): x = "something" # put any value
print(x)
Source by tutorial.eyehunts.com #
 
PREVIOUS NEXT
Tagged: #line #statement #python
ADD COMMENT
Topic
Name
8+1 =