2026
Jump to navigation
Jump to search
2026 is an esolang based off of 2014 but for the year 2026, and it lasts all year. 2026 is identical to Python but it only runs in 2026
Examples
Hello world
print("Hello, world!")
Truth-Machine
x = int(input())
print(x)
while x:
print(x)
Cheating "Python interpreter"
exec(input())
Quine
s = "s = %r print(s %% s)" print(s % s)
"Self Interpreter"
import datetime
current_year = datetime.datetime.now().year
if current_year != 2026:
print("Error: it isnt 2026. . .")
else:
print("Executing 2026.")
exec(input())
Implementation
import datetime
current_year = datetime.datetime.now().year
if current_year != 2026:
print("Error: it isnt 2026. . .")
else:
print("Executing 2026.")
exec(input())