+ 1
List Comprehension
Hello! I was trying to do a problem of List comprehension, but I’m getting error and I don’t know how to fix it, can someone help me please? https://code.sololearn.com/c3JrlL9JcK1g/?ref=app
2 Réponses
+ 6
Ok so you can't do say 3 in 43 and 3 in "43" as well ,
It should be "3" in "43".
number= [i for i in range(100) if "3" in str(i)]