repl.it
@anonymous/

WellinformedHotAllensbigearedbat

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
f=lambda s,a=0:a==0and" ".join(" ".join(f(" "+s.split(",")[i],(["X,deC,1/2,half-C,1/3,oneT-C,2/3,twoTs-C,C,caf,T,-third",",".join(" %i"%i+f(",%i-tupL"%i,["1","x","2","y"])for i in range(6,21))+",1,solo,2,doppio"*('E'in s)+",1,singL,2,doubL, 3,tripL, 4,quadrupL, 5,quintupL,x,1,y,2,S,short,T,tall,G,grande,V,venti","10,ten,11,eleven,12,twelve,13,thirT,14,4T,15,fifT,16,6T,17,7T,18,8een,19,9T,20,twenty,1,one,2,two,3,three,4,four,5,five,6,six,7,seven,8,eight,9,nine,T,teen,V, vanilla,H, hazelnut","Wh,whole-milk,%,two-percent,N,skim,B,breve","x,extra ,-,no ,F,foam,WC,whip,M,MR,R, drizzL","CM,xM,E,espresso,M, macchiato,CP, con panna,A,americano,L,latte,C,cappuccino,x,C"][i]+",C, caramel,M, mocha,L,le ").split(","))for i in range(6-(s in",1,,,,E,2,,,,E"))).split())or a and f(s.replace(a[0],a[1]),a[2:])or s
 
print(f(",3G,V,Wh,,L"))
print(f("X,2T,,N,,L"))
print(f("1/2,V,,,,CM"))
print(f("2/3,3V,3V,B,WC,L"))
print(f(",G,,,xCR,CM"))
print(f("X,4T,2M 2C,B,xWC -F xM,C"))
print(f(",2,1V,B,,EM"))
print(f(",1,,,,E"))
print(f(",2,,,,E"))
print(f(",3,,,,E"))
print(f(",1,1V,,,C"))
print(f(",2,2V,,,C"))
print(f(",1,1V,,,E"))
print(f(",2,2V,,,E"))
print(f(",3,3V,,,E"))
print(f(",4,4V,,,E"))
print(f(",5,5V,,,E"))
print(f(",6,6V,,,E"))
print(f(",7,7V,,,E"))
print(f(",8,8V,,,E"))
print(f(",9,9V,,,E"))
print(f(",10,10V,,,E"))
print(f(",11,11V,,,E"))
print(f(",12,12V,,,E"))
print(f(",13,13V,,,E"))
print(f(",14,14V,,,E"))
print(f(",15,15V,,,E"))
print(f(",16,16V,,,E"))
print(f(",17,17V,,,E"))
print(f(",18,18V,,,E"))
print(f(",19,19V,,,E"))
print(f(",20,20V,,,E"))