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.

MLM

From Esolang
Jump to navigation Jump to search

MLM is mlm equivalent, but m is M, l is L.

Python interpreter

a=0
for c in input():
   if c=="M":a+=1
   if c=="L":a-=1
   if c==".":print(a)