List Comprehension | Sololearn: Learn to code for FREE!


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?

1/24/2021 11:36:00 PM

Alejandra b

2 Answers

New Answer


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