For loop python

In python, for loop is used for iterating over a sequence (that is either a list, a dictionary,a tuple, a set or a string).

Example :

fruits = [“apple”, “banana”, “cherry”]
for x in fruits:

By ayed_amira

I'm a data scientist. Passionate about new technologies and programming I created this website mainly for people who want to learn more about data science and programming :)

Leave a comment

Your email address will not be published.