From 1ea5cf711453b148316d685389f5f98cfabf30a9 Mon Sep 17 00:00:00 2001 From: ThatXliner Date: Mon, 15 Mar 2021 10:45:11 -0700 Subject: [PATCH] Updated python 1 line slot machine --- sheets/_python/1line | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheets/_python/1line b/sheets/_python/1line index 45f08a2..a9481ee 100644 --- a/sheets/_python/1line +++ b/sheets/_python/1line @@ -53,7 +53,7 @@ print('\n'.join([''.join([('OhMyLove'[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x python -c "while 1:import random;print(random.choice('|| __'), end='')" # Simulate a slot machine -python -c "import random;p=lambda:random.choice('7♪♫♣♠♦♥◄☼☽');[print('|'.join([p(),p(),p()]),end='\r') for i in range(8**5)]" +python -c "import random,time;p=lambda x=0:random.choice('7♪♫♣♠♦♥◄☼☽');[print('|'.join([p(time.sleep(0.1)),p(),p()]),end='\r') for i in range(5*8)];time.sleep(1)" # Guess number game python -c "import random;n=random.randint(1,99);[(lambda a:print('Y' if a==n else 'H' if a>n else 'L'))(int(input())) for i in range(6)]"