I'd like to shorten my if, elif, else statement, Here's what it looks :
transparency == False
if transparency == 'true':
transparency = True
elif transparency == 'false':
transparency = False
else:
transparency = True
And here's what I tried :
transparency == False
transparency == 'true' ? True: False #boolean type
I thought it'd work like the javascript shorthand, am I wrong?