Print elements of list in Python

for loop with in syntax can be used to iterate over the list in python. And print function can be used to print the element.

companies = ["Google","Apple", "Microsoft"]
for company in companies:
    print(company)


Output
Google
Apple
Microsoft