From Esolang
Jump to navigation Jump to search

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!!!


 import random
 import re
 f = open("sr.txt", "r")
 fr =
 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