# Question 1
# data1 = "1,2,3,4"
# data2 = "1,2,3,4"
# output = [1, 4, 9, 16]
# how do we get the following output

# solution to above
# data1 = data1.split(",")
# data2 = data2.split(",")
# result = []
# for index in range(len(data1)):
#     result.append(int(data1[index])*int(data2[index]))
# print(result)

# Question 2
# data = "a,b,c,d"
# output = data.split(",")
# print(output, type(output))
# # what will be the output


# Question 3
# simplify this code . can use AND OR
# a = int(input('enter a '))
# b = int(input('enter b '))
# c = int(input('enter c '))
#
# if a > b:
#     if a > c:
#         g = a
#     else:
#         g = c
#
# else:
#     if b > c:
#         g = b
#     else:
#         g = c
#
# print("Greatest number is ", g)

# Question 4
# import random
# list1 = []
# list2 = []
# for i in range(10):
#     random_number = random.randint(0, 10)
#     if random_number > 5:
#         list1.append(random_number)
#     else:
#         list2.append(random_number)
#
# print(list1, list2)
# # fruits = ['apple', 'banana', 'cherry']
# # x = fruits.count("cherry")
# print({'count of list 1':list1.count(1),'count of list 2': list2.count(2)})



