leewp14 Inserting TAB in nano works, but the tabs are spaces,
Tabs are evil, as their effects are not standardized. In some editors they default to 8 spaces, more commonly in code that follows the K&R standards for C and similar languages, they are usually expected to be 4 spaces, although that's not a requirement. Python standards require 4 spaces, and base their code structure on that. The last company I worked for before retiring required 2 spaces per tab.
Unlike tabs, a space is always a space. Two spaces are always two spaces. And so on, regardless of who is looking at the code or document, and regardless of what editor is being used.
So Nano can be commended for changing tabs to spaces, but you can probably change that behavior in its settings. By the way, all the cool kids are using Micro instead of Nano these days. It's in the repository. If you give it a try, you might like it better, as well.