Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #zad1
- def funkcja(*lista):
- nowaLista = [(lista[i],lista[i+1]) for i in range(0,len(lista)-1,2)]
- for row, i in zip(nowaLista, range(0, len(nowaLista))):
- if int(row[1])%3 == 0:
- del nowaLista[i]
- for i in range(1,2 * len(nowaLista) - 1, 2):
- nowaLista.insert(i,"kot")
- for i in nowaLista:
- print(i)
- funkcja("Zenon", 4, "ala", 3, "Zosia", 2, "3", 7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement