UPE

From Esolang
Jump to navigation Jump to search

UPE, or Unary Python Esolang, is a language/extension of python that just makes your life impossible, to use UPE, write your program in Python3, then replace every character in the program with a three digit number containing that character's ASCII value, then stick all those character numbers back to back and add a 1 at the beginning to create a real number.

Then, convert that number to Unary. For example, a program that does nothing but "pass" would be 1,112,097,115,115 zeroes.

Hello World program:

1,112,114,105,110,116,040,034,072,101,108,108,111,044,032,119,111,114,108,100,033,034,041

zeroes

CAT Program:

1,112,114,105,110,116,040,105,110,112,117,116,040,034,034,041,041 

zeroes

Infinite loop while doing nothing program:

 1,119,104,105,108,101,032,084,114,117,101,058,010,032,032,032,032,112,097,115,115 

zeroes

Quine program:

1,035,081,117,105,110,101,032,112,114,111,103,114,097,109,010,105,109,112,111,114,116,032,111,115,044,032,115,121,115,010,119,105,116,104,032,111,112,101,110,040,111,115,046,112,097,116,104,046,097,098,115,112,097,116,104,040,115,121,115,046,097,114,103,118,091,048,093,041,044,032,034,114,034,041,032,097,115,032,102,058,010,032,032,032,032,112,114,105,110,116,040,102,046,114,101,097,100,040,041,041 

zeroes

Interpreter Shell implementation here.

See also