I made a code, but it's showing the following error: nailshable type: 'list' Question statement:
Gohan most certainly asked you to write a program to check that the distances marked by the two were equal. Attention: Realize that the stones can reach the same distance, so you must ensure that they reach a certain distance the same amount of times.
Note: It is mandatory to use dictionaries for the question. The use of the sort and count functions is prohibited.
Note: The order of distances is not relevant
The program must receive an initial integer that represents the amount of stones thrown by each one.
If the two lists are the same, even if in different order, print:
“Dale Gohan!”
And if not, print:
"Oh, not now, Gohan! Let's try again next week.
Input example:
5
1 2 3 3 5
5 1 3 2 3
Exit:
'Go, Gohan'.
My code:
n = int(input())
stone_gohan = input().split()
stone_picolo = input().split()
dictionary_gohan = {stone_gohan}
dictionary_picolo = {stone_picolo}
if dictionary_gohan == dictionary_picolo:
print("Go, gohan")
else:
print("Oh, not now, Gohan! Let's try again next week.")