The anwser for Decision Statements - Excercise 2 is

var = input()
if var.isalpha() == False:
if var.isdigit() == False:
print('The input contains both digits and alphabets')
else:
print('The input contains only digits.')
elif var.isalpha() == True:
print('The input contains only alphabets')