Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## ZADANIE 1
- def increment(list):
- for i in range(0, len(list)):
- list[i] = list[i] + 1
- return list
- ## ZADANIE 2
- def iloczyn(list):
- il = 1
- for i in range(0, len(list)):
- il *= list[i]
- return il
- ## ZADANIE 3
- def palindrom(word):
- rev_word = reversed(word)
- if list(word) == list(rev_word):
- return True
- else:
- return False
- ## ZADANIE 1
- #print(increment([1,2,3,4]))
- ## ZADANIE 2
- #print(iloczyn([1,2,3,4]))
- ## ZADANIE 3
- #print(palindrom("ala"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement