who do i do an and in python code example
Example 1: and in python
#And opreator in python
a = 12
b = 56
print(a and b * 12)
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