Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee Python interpreter

From Esolang
Jump to navigation Jump to search
Back to Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee
import sys
while 1:
    code=input()
    if code=='Start epidemic':
        break
acc=0
while 1:
    code=input()
    if code=='Infect person':
        acc+=1
    if code=='Deinfect person':
        acc-=1
    if code=='Bulk infect':
        ch=sys.stdin.read(1)
        acc=ord(ch)
    if code=='Check number of infections':
        print(chr(acc),end='')
    if code=='Bulk deinfect':
        acc=(1 if acc>0 else 0)
    if code=='Skip next if no one infected':
        input()
    if code=='Delevop vaccine':
        break