# [Python 3], <s>53 51 50 49</s> 46 bytes

<!-- language-all: lang-python -->

    ['2'in str(n)or print(n)for n in range(1,101)]

[Try it online!][TIO-jn1q0s3l]

[Python 3]: https://docs.python.org/3/
[TIO-jn1q0s3l]: https://tio.run/##K6gsycjPM/7/P1rdSD0zT6G4pEgjTzO/SKGgKDOvBMhMA7LzFIAyRYl56akahjqGBoaasf//AwA "Python 3 – Try It Online"




Not the strongest language for this task, but I'm new to golfing.

Thanks to the commenters for their tips!