Print numeric value grater than 6 from a mix list -7

 

list=[int,float, 2,3,4,5,6,7,8,9,10,16,18,"munna","shohan","soyeb","neon","rafiq"]

for item in list:
if str(item).isnumeric() and item>6:
print(item)


#we can use isnumeric isupper islower many built in function in string from suggestion

Comments

Popular posts from this blog

D WEB LINK