How can I prove my existence using lines of code, is there a way an interaction between me and my CLI can provide me with assurance I exist, that everything around me is not a lie or unreal?
Asked
Active
Viewed 82 times
-4
-
1Seems like some stuff you are smokin – ArunJose Nov 07 '19 at 15:34
-
1Dafuq? It's always 4:20 somewhere? – LeoE Nov 07 '19 at 15:34
-
Hi, are you OK? – RemcoGerlich Nov 07 '19 at 15:34
-
Is this talking about you as a person? – Hippolippo Nov 07 '19 at 15:39
-
`python3 -c 'print("I exist")'` – DUDANF Nov 07 '19 at 15:52
2 Answers
2
In bash:
python -c "import this" | sed -n '14p'

dabhand
- 517
- 3
- 10
-
For those on Windows or on phones: "In the face of ambiguity, refuse the temptation to guess." – Green Cloak Guy Nov 07 '19 at 15:39
0
Inside a class:
class Entity:
def do_I_exist(self=None):
if self:
return True
return False
You can call it either as an instance method or a class method:
>>> Entity.do_I_exist()
False
>>> Entity().do_I_exist()
True
If called as an instance method on an object, then it must be the case that the object exists. If called as a class method, it returns false, showing that no such object exists.
Outside the code this can be considered a matter of philosophy, and thus out of scope. The Wikipedia page on cogito, ergo sum may be helpful for you in solving this dilemma.

Green Cloak Guy
- 23,793
- 4
- 33
- 53