How to put first element in list to last place, python -


I have two lists and I want to know how I can put the first element of men in the list to the last place. The lowest difference between these two lists will be remembered and remember that every time we put men in the first place in the last place, I hope that you understand the question .. The woman remains the same, I am only the first place Put the last place and first element in the first place Do I want to change the men's list. For example - men [172, 181, 166, 172, 174, 165, 169, 16, 185, 168], after the first change ...

  __ author == ' Majky 'female = [158, 166, 150, 158, 152, 160, 172, 15, 158, 162] male = [168, 172, 181, 166, 172, 174, 165, 16 9, 16, 18, 185 ] The largest _ zip for X (male, female): print (X, Y, AB) (xy) if the largest_base & lt; ABS (XI): The largest _ ABS = ABS (XI) print ("The Biggest Badger", Najvekja_Abus)  

  male = male [1:] + [male [0]]  

What will I do? It slices up the list that you have everything but the first element, then adds to the end.

This is the first value of [172, 181, 166, 172, 174, 165, 169, 16, 185, 168] when men For example, for example.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -