We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Iffy

From Esolang
Jump to navigation Jump to search

Introduction

Iffy is a proper subset of Python that is extremely hard to code in. In Iffy, variables are defined like Python variables:

   x = 0

However, in Iffy, a variable can only be 0 or 1. Variable names follow standard Python rules, as usual. In Iffy, conditional statements work just like in Python. 1 is truthy and 0 is falsy, as usual.

   var a=0
   if a:
       a=0
   else:
       a=1
   # The answer will be 1

print is the only other function in this subset and it works as usual.

Computational Status

Iffy is Turing-complete as it has the ability to store memory and perform logic

Interpreter

Iffy is literally Python so Python interpreters work on Iffy