Q17Single correct3 Marks1 Sep 2024
What will be the output of the following Python code?
Code Snippet
string1 = 'diploma'
string2 = 'data science'
L = []
```
string1 = 'diploma'
string2 = 'data science'
L = []
for i in range(0, len(string1)):
for j in range(0, len(string2)):
if (string1[i] == string2[j]):
L.append(string1[i])
break
else:
continue
print(L)
```