There must be an output!!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

There must be an output!!!

a = "b1a is 0n th3 w0rd 0f 61bnary" for k in a: if type(k) == type(7): print (k) else: continue

18th Jun 2019, 5:16 PM
GUUKMER_plays
GUUKMER_plays - avatar
2 Answers
+ 4
else: continue is unnecessary 👆
18th Jun 2019, 5:43 PM
Anna
Anna - avatar
+ 4
There isn't because all of k values are one character strings. 1 and 3 and and 0 6 and 1 are considered as string, too.But as you know 7 is an int.
18th Jun 2019, 5:33 PM
ΛM!N
ΛM!N - avatar