List Comprehension | Sololearn: Learn to code for FREE!

+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

1/24/2021 11:36:00 PM

Alejandra b

2 Answers

New Answer

+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)]

+1

https://code.sololearn.com/cgy1N2vrSK5I/?ref=app