a='asdf'
b='ascf'
for i in a:
    if i in b:
        print(i)
# for i in a:
#     for j in b:
#         if i==j:
#             print(i)
#...elements not same..............................
# for i in a:
#     if i not in b:
#         print(i)

#...............moving a string to another variable..............
# a='luminar'
# b=''
# for i in a:
#     b=b+i
# print(b)