Ask coding questions

← Back to all posts
How to hide a variable in Python Repl
ThisUserTaken

How do you hide a variable? In this program, how do you hide the variable "secret" from other people seeing it when they run the repl. In this repl, they can just look at the repl and be like ez and enter the secret password

Answered by DynamicSquid [earned 5 cycles]
View Answer
Voters
ThisUserTaken
Comments
hotnewtop
DynamicSquid

You need to create a secret.

You can access them like this:

ThisUserTaken

@DynamicSquid ah thanks

CosmicWarrior

It doesn't really help like that it just prints your variable and you can't use it as a password