RosettaCodeData/Task/Narcissist/Python/narcissist-1.py

8 lines
175 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import sys
with open(sys.argv[0]) as quine:
code = raw_input("Enter source code: ")
if code == quine.read():
print("Accept")
else:
print("Reject")