I need a specific function for a program of mine. It supposed to work something like this:
list = ['C','T', 'Z','L','P']
new_list = hypothetical_function('Z')
print(new_list)
#['Z','L','P','C','T']
Is there any built-in function in python to do this kind of operation on list?