Python) For

강현상
Jul 6, 2021

--

When you use ‘for’, it will print out whatever you have written in the list or tuple.

For example

The alphabet ‘i’ in the example could be anything

You can change it to anything else and it will work the same

Not just using ‘for’ to print out the element, you could use it and give ㅕㄴㄷ mathematical symbols into it

example of adding elements

You could also use continue and range with ‘for’

--

--