There is this particular array python syntax that my University tutor uses and I can't understand it. I searched everywhere for it but haven't found anything remotely close. As you can see in the code, he used this : arrayb+= [arraya(m)][1]].
I am only confused about the syntax and fear that I may miss something important to the array topic. Running this code via python idle gives me a faint idea what it would do: only take the value of element at index 1 in array a. But is that everything to it?
Thank you in advance
n = int(input("Wie viele Wortpaare sollen eingegeben werden: "))
a = []
for i in range(1,n+1):
print("Bitte geben Sie das "+str(i)+"te Wortpaar ein:")
a += [[input(),input()]]
b = []
for m in range(0,len(a)):
b += [a[m][1]]
b += [a[m][0]]
c = []
for x in range(len(a)-1,-1,-1):
c += a[x]
print(a)
print(b)
print(c)