How would I compare an element of a tuple return from a function in an if statement? For example, I would like to do something like the following...
if platform.machine() == "AMD64" :
This function only has one string varaible return. I would like to do the same except with platform.architecture() which has a return that looks like ('32bit', 'WindowsPE'). What I currently do is ...
architecture = platform.architecture()
if architecture[0] == "64bit":
I was wondering if there was something more pythonic that could be achieved in one line.