Why [None] does appear in output? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 3
Well because function my_islower(word) is returning nothing.
1st Aug 2022, 1:37 PM
Abhay
Abhay - avatar