I am generating all the answers still getting wrong answers

This is my code , gives all right answers .

@aryan_007
You need to print the output as follows :
Q = 1234
A = [abcd, awd, lcd]