Who went to space first?

Yuri Gagarin was the first human to go into space. However, animals were sent before that to test out.