summaryrefslogtreecommitdiff
path: root/progs/a64.py
blob: 73b23fddc6362acbc72760a30e9fe17b05de0e27 (plain)
1
2
3
4
5
def move_last(num_list):
    a = [num_list[0] for i in range(num_list.count(num_list[0]))]
    x = [ i for i in num_list if i != num_list[0]]
    x.extend(a)
    return (x)