python se a entrada do usuário contiver string

Pergunta muito básica. Nós temos o código:

a = input("how old are you")

if a == string:
    do this

if a == integer (a != string):  
    do that

Obviamente, não funciona assim. Mas qual é a maneira mais fácil de fazer isso? Obrigado por qualquer resposta antecipadamente.

Nós também poderíamos dizer:

if string in a:
    do this

questionAnswers(3)

yourAnswerToTheQuestion