Memory test

Report a typo

Today you are assisting in a psychological experiment. To test short-term memory, a researcher gives a set of numbers to each volunteer and asks to repeat all of them. The order does not matter and repeats are allowed.

The input has been read into two variables for you.

If the volunteer remembers all numbers correctly, print True, otherwise, you should output False.

The comparison of two sets will return either True or False, so you don't have to use conditions like if-else in your code.

Sample Input 1:

1 2 3 4 5
5 4 1 2 1 3

Sample Output 1:

True

Sample Input 2:

999 1 1001 15 6 7
1 6 7 1 999

Sample Output 2:

False

Sample Input 3:

3 4 5 7
3 4 5 6 7

Sample Output 3:

False
Write a program in Python 3
numbers = input().split()
answers = input().split()
___

Create a free account to access the full topic