def question_and_answer(prompt):
print("Question: " + prompt)
msg = input(11)
print("Answer: " + msg)
question_and_answer("How many players are their on defense?")
import pandas as pd
data = {
'Name': ['Dillon', 'Noor', 'Steven', 'Lucas', 'Harsha', 'Varalu', 'Ryan', 'Emaad'],
'Age': [24, 31, 42, 27, 29, 26, 90, 15],
'Gender': ['M', 'M', 'M', 'M', 'F', 'F', 'F', 'F'],
'Grade': ['A', 'B', 'A', 'D', 'C', 'F', 'B', 'A']
}
df = pd.DataFrame(data)
# descriptive statistics of numeric columns
print(df.describe())
# counts of unique values in the 'Grade' column
print(df['Grade'].value_counts())
# mean age by gender
print(df.groupby('Gender')['Age'].mean())