Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
20/2
str1='silent' str2='listen' str1=sorted(str1) str2=sorted(str2) if str1==str2 : print('anagram') else: print('not anagram') dict={1:100,2:200,3:300} sum(dict.values()) k=['a','b','c'] dct={} v=[100,200,300] for i,j in zip(k,v): dct[i]=j print(dct) str="aaaeee" s=set(str.lower()) c=0 for i in s: if i in ['a','e','i','o','u']: c=c+1 print(c)
run
|
edit
|
history
|
help
0
Python examples - SIMPLE
Run
my first code
RandomShape
python2 - division -1
on_off
Python
GardenerList
dice_02_while
Filter dictionaries with specific keys (using list comprehension)