# l = [1, 2, 3, 4, 5, 6]
#
# l[1], l[-2] = l[-2], l[1]
#
# print(l)
# x = "day"
# y = "11.0"
# print(x, y, 11.0, "Spam", sep=", ")
# print(x, y, 11.0, "Spam", sep="\n ")
# print(x, y, 11.0, "Spam", sep=" ")
#
# a, b = 10, 20
# print("spam", "123", end=" ")
# print(a, b)

# s = "Hi, there!"
# print(s[7:1:-2])
# s[0:4]
# l = [1, 3.14, "Hello", [5, 7, 8]]
# l [1:3]
# l [2:]
# l [:]
# # s [0: -3:2]
# #
# # l[::-1]
# # [5, 7, 8], "Hello", 3.14, 1]
# l = [1,3.14, "hello", [5, 7, "people"]]
# l [1] = 2.71
# l[-1] [-1] = (1, 0, 1)
#
# l[2:2] = ["egg", "spam"]
# print(l)
#
#
# l = [1, 2, 3]
# s = len(l) if type (l) is list else None
# # x = int(input("Enter number:"))
# # x = "Good!" if x%2 ==0 else "Bad"
#
#
# s = "Hello, world!"
# print(',' in s)
# # 4 == 4 # сравнения
#
# d= {"name": "Bob", "age": 10}
# print("name" in d)

# a = input("Enter number:")
# a = int(a)
# if a:
#     print("OK!")
# else:
#     print("bad!")


# l = ["a", "b", "c", "d", "e"]
# while len(l) != 0:
#     l.pop()
# print(l)
#
#
# ls=[10, 30, 2, 4]
# for x in ls:
#     print (x)

# l = [10, 30, 2, 5, 21, 4]
# for item in l:
#     if item % 2 == 1:
#         print(item + 1)
#     else:
#         print(item)


# l = [10, 30, 2, 5, 21, 4]
#
# for i in range(len(l)):
#     print(i)
#     print("value:", l[i])
#     if l[i] & 2 == 1:
#         l[i] += 1
# print(l)

# while True:
#     number = input("Enter a number:")
#     # if ' ' not in word:
#     #     print(word)
#     #     break
#     try:
#        number = float(number)
#        break
#     except ValueError:
#         print("You entered not a number!")


# print(word)


