You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
list1 = [10, 10, 0, 0, 10]
|
|
list2 = [10, 10, 10, 0, 0]
|
|
list3 = [1, 10, 10, 0, 0]
|
|
|
|
print('Compare list1 and list2')
|
|
print(' '.join(map(str, list2)) in ' '.join(map(str, list1 * 2)))
|
|
print('Compare list1 and list3')
|
|
print(' '.join(map(str, list3)) in ' '.join(map(str, list1 * 2))) |