Printing out an if statement such that only numbers which have one digit are printed out
I just started learning Python today(I have some minor previous experience from school) and I was using this one course I randomly saw which has some exercises and I'm confused on how to do this question.
They gave a hint for the code:
for element in [7, 11, 8, 5, 3, 12, 2, 6, 9, 10, 1, 4]:
if ...:
print(...)
I've tried a few things but they didn't really work.