def test(): return(True, '123') items = test()
I need to use return value of items[0] as a test condition in a nested else if statement. How do I do it at the else if statement?
items[0]
if a > b: do task elif test()[0]: do task