#try to avoid input function a = [1,2,3,4,5,6,7,8,9] c = len(a) if c%2 == 0: print(a[(c//2)-1],a[c//2]) else: print(a[c//2])
Click the run button. Try to avoid input() function.