I'm trying to make this code so it prints out everything in the dictionary, and then the user can pick what dictionary item they want, I would need to be able to use the key they picked and remove it from the dictionary.
dict = {'i': [24062, 'txt'], 'e': [10293, 'txt2']}
v = 0
for i in dict
v += 1
print(f'({v}) {i}')
v += 1
print(f'({v}) Back')
getinput = int(input('>> '))
if getinput < v and getinput > -1:
# I want it to find the key and value you selected
# I want it to print the key and the value you selected
elif getinput == v:
print('Go back to menu')
else:
print('Didnt work :(')