Python-lists

From wikipost
Revision as of 15:04, 17 December 2020 by Admin (talk | contribs) (Created page with "parsing lists in python <pre> my_list = [28, 56, 45] for item in my_list: print(item) </pre> Output: <pre> 28 56 45 </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

parsing lists in python


my_list = [28, 56, 45]

for item in my_list:
  print(item)

Output:

28
56
45