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?
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?
Inside a class:
You can call it either as an instance method or a class method:
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.