python if with and operator code example
Example 1: python if and
if foo == 'abc' and bar == 'bac' or zoo == '123':
# do something
Example 2: if with && in python
def front_back(a, b):
# +++your code here+++
if len(a) % 2 == 0 && len(b) % 2 == 0:
return a[:(len(a)/2)] + b[:(len(b)/2)] + a[(len(a)/2):] + b[(len(b)/2):]
else:
#todo! Not yet done. :P
return