I am writing a Python code and it is requisite to include a password of one of my online account. I want to cover it in some  way as keeping its functionality in the code. Is there nay way to masquerade this kind of credential information as keeping its use in the source code?
You should tell us what kind of protection you want. Do you want to make everybody able to execute you script without knowing the password? Do you want to be the only able to execute you script but you want to protect the password from people who can read the source? There may be different solution.
However every solution will require you to insert another password to get access to the stored password. So I think that the best solution would be not to save the password in the source at all.
How could I securely embed a required password into source code?