How to use reserved keyword as the name of variable in python?

Viewed 3386

I want to use reserved keyword "from" as the name of variable.

I have it in my arguments parser:

parser.add_argument("--from")
args = parser.parse_args()
print(args.from)

but this isn't working because "from" is reserved. It is important to have this variable name, I don't want answers like "from_".

Is there any option?

1 Answers
Related