1. import math w = [1,2,3,4,5,6,7] w.sort() def check(num, w): if num > w[-1]**w[-1]&nbs***bsp;num < w[0]**w[0]: return -1, -1 if num in w and 1 in w: return num,1 n = len(w) for i in range(n): if w[i] == 1: continue else: ...