TITLE: The fundamental group(s) of $\Bbb Q$ and of $\Bbb R$.
QUESTION [5 upvotes]: I am teaching myself algebraic topology and got stuck on an exercise to find the fundamental group of $\Bbb Q.$ 
While I understand what a fundamental group is, I have no idea how to find it (so far, I know only the definition, and exercise was just after it. I can only find the fundamental group of $\Bbb Z$, which is $0$ (which I hope it is correct). 

Is the group of $\Bbb Q$ the same as the group of $\Bbb R?$ Please, explain to me how to find fundamental groups of $\Bbb Q$ and $\Bbb R$. 

Thank you.

REPLY [9 votes]: Any continuous map $\Bbb S^1\to \Bbb Q$ is constant, therefore the fundamental group of $ \Bbb Q$ is trivial no matter what the base point is.
Any continuous map $f:\Bbb S^1\to \Bbb R$ can be continuously shrunk to a constant map via $F(x,t)=(1-t)f(x)$, where $t=0$ yields $f$ and $t=1$ yields a constant map. Therefore again the fundamental group of $ \Bbb R$ is trivial no matter what the base point is.