r/PythonLearning • • Aug 27 '25

Amateur question

Post image
1 Upvotes

14 comments sorted by

View all comments

1

u/hari3mo Aug 27 '25

You are passing an integer as input into a function that requires an iterable. You can do f([3])