My homework question given is:
How can you print the path of the current directory (working directory) and how can you use it as a variable?
The first part of the question is easily answered: By using pwd.
But how can I use the output as a variable?