import pandas as pd
def sum_attempts(df):
return df['attempts'].sum()
df1 = pd.DataFrame({'name': ['Tom', 'Jack', 'Steve', 'Ricky'], 'attempts': [1, 2, 3, 4]})
df2 = pd.DataFrame({'name': ['Adam', 'Eve', 'Stark', 'Rogers'], 'attempts': [4, 3, 2, 1]})
print(sum_attempts(df1))
print(sum_attempts(df2))