Hi there! To exit nano, you'll want to use the shortcut for the "Exit" function.
In the nano editor, look at the bottom of your screen where the shortcuts are displayed. The "Exit" function is usually represented by ^X.
To use this, you would press Ctrl (Control) and X simultaneously on your keyboard. If you haven't saved your changes yet, nano will then ask you if you want to save.
Let me know if you have any other questions while using nano!