PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
device={"hgjngcb","hdf,hb"}
badChar=[":",","]
def check(dictionary):
for x in (dictionary):
char= list(x)
#print(char)
for i in char:
if i in badChar :
print("please remove: " +x)
return False
return True
print(check(device) == True)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run