k = int(input("enter the K value: "))
total_entry = int(input("How many numbers you want in your tuple: "))
ourList = []
for i in range(total_entry):
    ourList.append(int(input(f"Enter the {i+1}th Entry: ")))
ourList.sort()
newList = []
for i in range(k):
    newList.append(ourList[i])
    newList.append(ourList[-1-i])
newList.sort()
ourTuple = tuple(newList)
print(ourTuple)
8a23b2fb5756130f99aabd0f4e21125b48d36cb1
<mask token>

<mask token>
for i in range(total_entry):
    ourList.append(int(input(f'Enter the {i + 1}th Entry: ')))
ourList.sort()
<mask token>
for i in range(k):
    newList.append(ourList[i])
    newList.append(ourList[-1 - i])
newList.sort()
<mask token>
print(ourTuple)

k = int(input('enter the K value: '))
total_entry = int(input('How many numbers you want in your tuple: '))
ourList = []
for i in range(total_entry):
    ourList.append(int(input(f'Enter the {i + 1}th Entry: ')))
ourList.sort()
newList = []
for i in range(k):
    newList.append(ourList[i])
    newList.append(ourList[-1 - i])
newList.sort()
ourTuple = tuple(newList)
print(ourTuple)

k = int(input("enter the K value: "))
total_entry = int(input("How many numbers you want in your tuple: "))
ourList = []
for i in range(total_entry):
    ourList.append(int(input(f"Enter the {i+1}th Entry: ")))
ourList.sort()
newList = []
for i in range(k):
    newList.append(ourList[i])
    newList.append(ourList[-1-i])
newList.sort()
ourTuple = tuple(newList)
print(ourTuple)