Python and Mysql
Python and Mysql
# concatenation operator
print(L1 + L2)
# replication operator
print(L1 * 3)
# membership operator
print("yellow" in L1)
print("yellow" not in L1)
L3 = (14, 15, 5, 6, 8)
print(max(L3))
print(min(L3))
print(sum(L3))
• Write a program to use all dictionary functions
# define a dictionary
my_dict = {"apple": 3, "banana": 5, "orange": 2}