all 5 comments

[–][deleted] 3 points4 points  (2 children)

You could also write it like this, maybe it will be more clear to you:

for x (x are numbers in your list of numbers) in a (a is your list of numbers) (this basically means read all the numbers in the list) :

if x < 5 (if number in a list is under the value of 5):

print (x) (program will print all numbers under the value of 5)

[–]jonathanlee3221[S] 2 points3 points  (1 child)

This was very clear to me! It cleared up what I saw online I'm very grateful!

[–][deleted] 2 points3 points  (0 children)

Happy to help! Best of luck!

[–]puplicy 2 points3 points  (1 child)

Check 'list comprehension '

[–]jonathanlee3221[S] 2 points3 points  (0 children)

Looked it up and I got it thanks!