Python - Loops
# Lone Star Development Training - Loops # LOOPS # For and while are some of the Loops that you will see in Python. A for loop is used for iterating over a standard # sequence, such as a list, tuple, dictionary, set or a string. This is more like an iterator method found in other # object oriented programming languages and less like standard for loops in other languages. # A while loop is going to keep looping until a condition has been met. # Here is a list of programming languages languages = ["Python", "C#", "Java", "Objective C", "ActionScript", "JavaScript", "TypeScript", "C++"] # in this for loop, we are going to take each one of the items in the list and print in the order # that they are in the list for x in languages: print(x) # Here is a trick that we can use to verify and test that by reversing the list order print("We are going to reverse the list here and verify that the list will...