SovietCode

From Esolang
Jump to navigation Jump to search
Logo

SovietCode is a Python-interpreted, joke programming language created by User:Vulture001. The sole purpose of the language is to print a string in a text file.

Code examples

Hello, World program

 "In Soviet Russia,"
   "'Teddy Bear'" prints YOU!!!

Interpreter

 import random
 import re
 f = open("sr.txt", "r")
 fr = f.read()
 cq = fr.count("'")
 tf = "In Soviet Russia," in fr
 if tf == True:
     print('In Soviet Russia,')
     qlist = re.findall("\'(.*?)\'",fr)
     print(qlist[0] + " prints YOU!!!")

External resources