I have this python conditions
a=a_foo()
if a==True:
  b=b_foo():
    if b==True:
      c=c_foo()
      if c==True:
         d=d_foo()
      else:
        print('c error')
    else:
      print('b error')
  else:
    print('a error')
The code is working, but if i use this conditions for a-z, the code seems bad.
What a better solution ?
EDIT :
Thanks for comment, i will use if a instead of if a == True
also a_foo, b_foo, c_foo functions is only example, can be function1,func2,funcother,etc
and last, the function also have parameter, example a_foo(p1, p2)
 
     
     
     
    