import pandas as pd
# create a sample DataFrame
data = {'name': ['Alice', 'Bob', 'Charlie'],
'age': [25, 30, 35],
'city': ['New York', 'Paris', 'London']}
df = pd.DataFrame(data)
# iterate over each row and print the name and age
for row in df.itertuples:
print(row.name, row.age)