list1 = ["cat", "dog", "frog", "cat"]
#  
# list2 = [1, "dog", list]
#  
# print(list1)
# print(list1[-1])
# print(list2)
#  
# print(list1.index("dog"))
#  
# list1.append("elephant")
#  
# print(list1)
#  
# list1.insert(0, "new object")
#  
# print(list1)
# print(list1[2:])
# print(list1[:2])
# print(list1[2:3])
#  
# list1.sort()
#  
# print(list1)


# print(list1)
# mySet= set(list1)
# print(mySet)
# 
# # print(mySet[0]) # unsorted
# print(sorted(mySet)[0])

# operacje na zbiorach
# E1 = set([1,2,3,4,5])
# E2 = set([3,4,5,6,7])
# 
# print(E1)
# print(E2)
# 
# print(E1 - E2)
# print(E1 | E2)
# print(E1 & E2)
# print(E1 ^ E2)
# 
# #Slownik
# 
# score = {"Pat" : "pat1", "Cat" : "cat1" }
# print(score)
# print(score["Pat"])
# 
# #petle
# 
# lista = [1,2,3,5]
# 
# for i in lista:
#     print(i)
# mySet2= set(lista)
# for i in sorted(mySet2):
#     print(i)
#     
# for key, value in score.items():
#     print(key + " " + value)


#wyjatki

# x = input("Podaj liczbe: ")
# print(x)
# 
# try:
#     x = int(input("Podaj liczbe: "))
#     print(x)
# except ValueError:
#     print("value error")

# try:
#     x = int(input("Podaj liczbe: ")) / 0
#     print(x)
# except ZeroDivisionError:
#     print("Some error")

#moduly
















