+ 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

24th Jan 2021, 11:36 PM
Alejandra b
Alejandra b - avatar
2 odpowiedzi
+ 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)]
24th Jan 2021, 11:49 PM
Abhay
Abhay - avatar
25th Jan 2021, 4:02 AM
Angry Student(Docvad)
Angry Student(Docvad) - avatar