Language:
Source:
Result:
py3
Source:
emojis='โค๏ธ ๐งก ๐ ๐ ๐ ๐'
print(''.join(__import__('random').choice([x[0] for x in emojis.split(' ')]) for _ in range(60)))
Result:
๐๐โค๐๐๐โค๐๐๐งก๐๐๐๐งก๐๐๐งกโคโค๐โค๐๐โค๐๐๐๐โค๐๐๐๐๐๐๐งก๐๐โค๐โค๐๐๐๐๐๐๐๐๐๐๐งก๐๐๐๐โค๐งก๐๐
Language:
Source:
Result:
py3
Source:
code="def main():\n print(gethi())\ndef gethi():\n return'hi'\nif __name__=='__main__':main()"
exec(code)
Result:
hi
Language:
Source:
Result:
py3
Source:
import keyword as k
w=k.kwlist+['print','\"','\'','(',')',':','=']
e='โ๐ซโโซ๐โณ๐๐ซโถ๐โ๐๐๐ฑ๐ โญโซ๐๐ค๐ขโฌโโ๐ฝโโ๐จ๐๐โ๐๐๐บ๐จโผโโชโฉโโฐ'
d,i={},0
for j in e:
d[j]=w[i];i+=1
print(d)
Result:
{'๐': 'elif', 'โฌ': 'in', 'โ': 'or', 'โถ': 'continue', 'โ': 'is', '๐ซ': 'class', 'โซ': 'from', 'โ': 'lambda', '๐': 'break', '๐': 'else', 'โ': 'try', 'โ': 'True', '๐': 'global', '๐': 'with', '๐': 'as', 'โ': 'del', 'โ': 'not', '๐ซ': 'None', 'โช': '(', 'โซ': 'and', 'โ': "'", '๐จ': 'print', '๐บ': 'yield', 'โฉ': ')', '๐': 'def', 'โฐ': '=', '๐': 'while', 'โญ': 'for', '๐
': 'finally', 'โณ': 'assert', 'โ': 'False', '๐ข': 'import', '๐': 'raise', '๐ฝ': 'nonlocal', '๐จ': 'pass', '๐ฑ': 'except', 'โผ': '"', '๐ค': 'if', 'โ': ':', '๐': 'return'}Language:
Source:
Result:
py3
Source:
import keyword as k
w=k.kwlist+'print " \' ( ) : = \n'.split(' ')
e='โ๐ซโโซ๐โณ๐๐ซโถ๐โ๐๐๐ฑ๐ โญโซ๐๐ค๐ขโฌโโ๐ฝโโ๐จ๐๐โ๐๐๐บ๐จโผโโชโฉโโฐ๐'
d,i={},0
for j in e:
d[j]=w[i];i+=1
n='๐ mโชโฉโ๐ ๐จโชโโผhiโผโโฉ๐๐ค __name__โฐโฐโ__main__โโ๐ mโชโฉ'
exec(''.join([(x if x not in d else d[x]) for x in n]))
Result:
"hi"
Language:
Source:
Result:
py3
Source:
print('\n'.join('{0} bottles of beer on the wall, {0} bottles of beer, you take one down and pass it around, {1} bottles of beer on the wall'.format(i, i-1) for i in (range(99, 97,-1))))Result:
99 bottles of beer on the wall, 99 bottles of beer, you take one down and pass it around, 98 bottles of beer on the wall
98 bottles of beer on the wall, 98 bottles of beer, you take one down and pass it around, 97 bottles of beer on the wall
maila11.telegram.org,149.154.167.57
mailm11.telegram.org,149.154.175.16
mails11.telegram.org,149.154.171.22
maila21.telegram.org,149.154.167.124
mailm21.telegram.org,149.154.175.114
mx1.telegram.org,149.154.162.203
mx2.telegram.org,149.154.162.204
web.telegram.org,149.154.167.120
flora-1.web.telegram.org,149.154.171.22
aurora-1.web.telegram.org,149.154.175.115
vesta-1.web.telegram.org,149.154.164.224
pluto-1.web.telegram.org,149.154.174.10
venus-1.web.telegram.org,149.154.167.24
aurora.web.telegram.org,149.154.175.115
vesta.web.telegram.org,149.154.164.224
pluto.web.telegram.org,149.154.174.10
venus.web.telegram.org,149.154.167.24
core.telegram.org,149.154.167.99
api.telegram.org,149.154.167.220
mail.telegram.org,149.154.167.33
desktop.telegram.org,149.154.167.99
translations.telegram.org,149.154.167.99
gbot.integrations.telegram.org,18.194.34.184
macos.telegram.org,149.154.167.99
instantview.telegram.org,149.154.167.99
ams-ix-gw.telegram.org,149.154.167.99
www.telegram.org,149.154.167.99
osx.telegram.org,149.154.164.3
my.telegram.org,149.154.167.99
mailm11.telegram.org,149.154.175.16
mails11.telegram.org,149.154.171.22
maila21.telegram.org,149.154.167.124
mailm21.telegram.org,149.154.175.114
mx1.telegram.org,149.154.162.203
mx2.telegram.org,149.154.162.204
web.telegram.org,149.154.167.120
flora-1.web.telegram.org,149.154.171.22
aurora-1.web.telegram.org,149.154.175.115
vesta-1.web.telegram.org,149.154.164.224
pluto-1.web.telegram.org,149.154.174.10
venus-1.web.telegram.org,149.154.167.24
aurora.web.telegram.org,149.154.175.115
vesta.web.telegram.org,149.154.164.224
pluto.web.telegram.org,149.154.174.10
venus.web.telegram.org,149.154.167.24
core.telegram.org,149.154.167.99
api.telegram.org,149.154.167.220
mail.telegram.org,149.154.167.33
desktop.telegram.org,149.154.167.99
translations.telegram.org,149.154.167.99
gbot.integrations.telegram.org,18.194.34.184
macos.telegram.org,149.154.167.99
instantview.telegram.org,149.154.167.99
ams-ix-gw.telegram.org,149.154.167.99
www.telegram.org,149.154.167.99
osx.telegram.org,149.154.164.3
my.telegram.org,149.154.167.99
Language:
Source:
Result:
py3
Source:
s='\u0336'
def striketext(string):
return s.join([*string,''])
print(striketext("this text is striked"))
Result:
tฬถhฬถiฬถsฬถ ฬถtฬถeฬถxฬถtฬถ ฬถiฬถsฬถ ฬถsฬถtฬถrฬถiฬถkฬถeฬถdฬถ
Forwarded from Zac
Language:
Source:
Result:
py3
Source:
import random as r
c = {1:"",2:"",3:"",4:"๐ฃ",5:"",6:""}
print('russian roulette:\n*spin*\n*click*\n')
print("*bang*\n*ded*" if not c[r.choice(list(c.keys()))] == "" else ":) *yolo*")
Result:
russian roulette:
*spin*
*click*
:) *yolo*
Forwarded from Zac
Language:
Source:
Result:
py3
Source:
import random as r
c = {1:"",2:"",3:"",4:"๐ฃ",5:"",6:""}
print('russian roulette:\n*spin*\n*click*\n')
print("*bang*\n*ded*" if not c[r.choice(list(c.keys()))] == "" else ":) *yolo*")
Result:
russian roulette:
*spin*
*click*
*bang*
*ded*
Language:
Source:
Result:
py3
Source:
o,h,e,q,c,k='โข','<','no he*cks given.',7,13,'โ';d=['โ ']*c;v=['']*q;p=[[i for i in d] for j in v];p[0][6]=p[1][3]=p[1][9]=p[3][1]=p[3][11]=p[5][0]=p[5][6]=p[5][12]=o;p[5][2]=h;p[5][3]=p[5][4]=p[5][5]=k;
print(*[''.join(x) for x in p],e, sep='\n')
Result:
โ โ โ โ โ โ โขโ โ โ โ โ โ
โ โ โ โขโ โ โ โ โ โขโ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โขโ โ โ โ โ โ โ โ โ โขโ
โ โ โ โ โ โ โ โ โ โ โ โ โ
โขโ <โโโโขโ โ โ โ โ โข
โ โ โ โ โ โ โ โ โ โ โ โ โ
no he*cks given.
Language:
Source:
Result:
py3
Source:
o,h,e,q,c,k='๐น','โ','no he*cks.',7,13,'โ';d=['โ ']*c;v=['']*q;p=[[i for i in d] for j in v];p[1][6]=p[2][2]=p[2][9]=p[3][1]=p[3][10]=p[4][0]=p[4][11]=p[5][0]=p[5][10]=o;p[5][2]=h;p[5][3]=p[5][4]=p[5][5]=k;p[5][6]='โซ๏ธ'
print(*[''.join(x) for x in p],e, sep='\n')
Result:
โ โ โ โ โ โ โ โ โ โ โ โ โ
โ โ โ โ โ โ ๐นโ โ โ โ โ โ
โ โ ๐นโ โ โ โ โ โ ๐นโ โ โ
โ ๐นโ โ โ โ โ โ โ โ ๐นโ โ
๐นโ โ โ โ โ โ โ โ โ โ ๐นโ
๐นโ โโโโโซ๏ธโ โ โ ๐นโ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ
no he*cks.
Language:
Source:
Result:
py3
Source:
h,t,g,o,s,n= ['๐บ', '๐ช', '๐ฎ'],'๐๏ธ','< (^_^ <)','(> ^_^) >','โ ','\n\n';d=len(h)
for i in reversed(range(d)):
z=[[*h,s,g,s,t],[*h,g,s,s,t],[*h[:i],o,h[i],s,t],[*h[:i],s,o,h[i],t],[*h[:i],s,s,o,t],[*h[:i],s,s,g,t]];print(*[''.join(x) for x in z],sep=n);h[i]=''
Result:
๐บ๐ช๐ฎโ < (^_^ <)โ ๐๏ธ
๐บ๐ช๐ฎ< (^_^ <)โ โ ๐๏ธ
๐บ๐ช(> ^_^) >๐ฎโ ๐๏ธ
๐บ๐ชโ (> ^_^) >๐ฎ๐๏ธ
๐บ๐ชโ โ (> ^_^) >๐๏ธ
๐บ๐ชโ โ < (^_^ <)๐๏ธ
๐บ๐ชโ < (^_^ <)โ ๐๏ธ
๐บ๐ช< (^_^ <)โ โ ๐๏ธ
๐บ(> ^_^) >๐ชโ ๐๏ธ
๐บโ (> ^_^) >๐ช๐๏ธ
๐บโ โ (> ^_^) >๐๏ธ
๐บโ โ < (^_^ <)๐๏ธ
๐บโ < (^_^ <)โ ๐๏ธ
๐บ< (^_^ <)โ โ ๐๏ธ
(> ^_^) >๐บโ ๐๏ธ
โ (> ^_^) >๐บ๐๏ธ
โ โ (> ^_^) >๐๏ธ
โ โ < (^_^ <)๐๏ธ
Language:
Source:
Result:
py3
Source:
t,g,o,s,c,n,m,w='๐','<(^_^ <)','(> ^_^)>','โ ','โ โ ','\n\n',-1,' ';h='๐ฐ',w,'๐ง';d=len(h)
for i in range(d+m,m,m):
j,k=h[i],h[:i]
if j==w:h=k;continue
print(*[''.join(x) for x in (h+(s,g,s,t),h+(g,c,t),k+(o,j,s,t),k+(s,o,j,t),k+(c,o,t),k+(c,g,t))],sep=n);h=k
Result:
๐ฐ ๐งโ <(^_^ <)โ ๐
๐ฐ ๐ง<(^_^ <)โ โ ๐
๐ฐ (> ^_^)>๐งโ ๐
๐ฐ โ (> ^_^)>๐ง๐
๐ฐ โ โ (> ^_^)>๐
๐ฐ โ โ <(^_^ <)๐
๐ฐโ <(^_^ <)โ ๐
๐ฐ<(^_^ <)โ โ ๐
(> ^_^)>๐ฐโ ๐
โ (> ^_^)>๐ฐ๐
โ โ (> ^_^)>๐
โ โ <(^_^ <)๐
from collections import Counter
n='Alexandru Popescu'
L,v=n.upper().replace(' ',''),reversed
c=Counter(L)
T=sorted([(k,c[k]) for k in c.keys() if c[k]>1], key=lambda e:(e[1],e[0]))
if not T:T=[(L)]
j=['-'.join(v([p[0]+str(p[1]) for p in T if p[1]>T[0][1]]))]
if j[0]=='':j=[T[-1][0]+str(T[-1][1])]
m=''.join(v([x[0] for x in T if x[1]==T[0][1]]))
print (*j+[m] if len(j)>2 else j+['-']+[m[1:4] if len(m)>2 else m[1:4]+'O'],sep='')def droid_name_gen(name):
n=__import__('re').sub('[^\\w]','',str(name))
if not n:return "Name Invalid.\nR2-D2: sad beep x'("
L=n.upper()
v=reversed
c=__import__('collections').Counter(L)
T=sorted([(k,c[k]) for k in c.keys() if c[k]>1], key=lambda e:(e[1],e[0]))
if T==[]:T=[(L[0],str(len(L))[0], (L[-1]))]
j=['-'.join(v([p[0]+str(p[1]) for p in T if p[1]>=T[0][1]]))]
jf=j[0][:2]
if len(j[0])==5:
if jf[1]==j[0][4]:j=[j[0][:5]]
elif len(j[0])>=8:
if jf[1]==j[0][4]:j=[j[0][:5]]
elif j[0][4] == j[0][7]:j=[j[0][:2]]
elif j[0]=='':j=[T[-1][0]+str(T[-1][1])]
m=''.join(v([x[0] for x in T if x[1]<=T[0][1]]))
e=j if len(j[0])>=5 else (j+['-']+[(m[1:4]) if len(m)>2 else (m[1:4]+('O' if len(m)>1 else 'O'+str(T[-1][-1])))])
return ''.join(e)
if __name__=="__main__":
import sys
if len(sys.argv)>1:
print(droid_name_gen(''.join([str(x) for x in sys.argv[1:]])))
else:
print("Please enter a name")s/((([aeiou]|(?<![aeiou])y(?![aeiou]))|(\B[aeiou]|(?<![aeiou])y(?![aeiou])))([aeiou]|(?<![aeiou])y(?![aeiou]))([^aeiouy .,'"\n()\[\]{}])(([aeiou]|(?<![aeiou])y(?![aeiou]))([^aeiouy .,]\B))|(\B([aeiou]|(?<![aeiou])y(?![aeiou]))|(\B[aeiou]|(?<![aeiou])y(?![aeiou])))([aeiou]|(?<![aeiou])y(?![aeiou]))([^aeiouy .,]))|(([^aeiouy .,'"\n()\[\]{}])([^aeiouy .,'"\n()\[\]{}])([aeiou]|(?<![aeiou])y(?![aeiou]))([aeiou]|(?<![aeiou])y(?![aeiou])))|(\b[^aeiouy .,'"\n()\[\]{}])([aeiou]|(?<![aeiou])y(?![aeiou]))([aeiou]|(?<![aeiou])y(?![aeiou]))([^aeiouy .,'"\n()\[\]{}]\b)/\3\6\5\9\8\11\14\13\16\18\17\19\20\21\23\22/gigroup_of_groups = [['telethonchat','telethonofftopic'],['pyrogramchat','pyrogramlounge']]
all_dict,common = {},[]
for index, group_group in enumerate(group_of_groups):
all_dict[str(index)] = []
for group in group_group:
lst1 = client.iter_chat_members(group)
for user in lst1:
first = user.user.first_name
username = user.user.username or ' '
un = f'@{username}:' if username!=' ' else ''
last = user.user.last_name or ' '
uid = user.user.id
user_form = f'{un}{uid}:{first} {last}'
all_dict[str(index)].append(user_form)
keys_list = list(all_dict.keys())
for index,group_group1 in enumerate(keys_list):
for group_group_user1 in all_dict[group_group1]:
for group_group2 in keys_list[index+1:]:
for group_group_user2 in all_dict[group_group2]:
if group_group_user1 == group_group_user2 and group_group_user1 not in common:
common.append(group_group_user1)
with open ('list_common.txt', 'w') as f:
f.write('\n'.join([x for x in common]))
client.send_document(mcid, 'list_common.txt')Language:
Source:
Result:
py3
Source:
from datetime import datetime as z
a,b,o=60,2020,divmod
y=z(b,1,1)-z.utcnow()
x=y.seconds
m,s=o(x,a)
h,m=o(m,a)
print('UTC is {} in {}{}h {}m {}s '.format(b,str(y).split(',')[0]+', ' if ',' in str(y) else '',h,m,s)[:11 if x<1 else -1])
Result:
UTC is 2020 in 232 days, 10h 36m 40s
apt update && apt install clang lib{jpeg-turbo,webp}-dev python{,-dev} zlib-dev && pip install -U setuptools && pip install -U telethon cryptg pillow