Why [None] does appear in output? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Why [None] does appear in output?

def my_islower(word): alphbet = 'qwertyuioplkjhgfdsazxcvbnm' if word in alphbet: print (True) else: print (False) lowers =list(map(my_islower,"ali")) print (lowers)

1st Aug 2022, 1:13 PM
Mohamad ali
1 Resposta
+ 3
Well because function my_islower(word) is returning nothing.
1st Aug 2022, 1:37 PM
Abhay
Abhay - avatar