Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Convert to lowercase
#python 3.5.2 my_dict = {u'customer': [u'GS808E', u'GS810EMX'], u'tablets': [u'Apple IPAD PRO', u'Apple IPAD MINI', u'IPAD'], u'gaming_consoles': [u'SONY PLAYSTATION 4', u'XBOX ONE S', u'PLAYSTATION'], u'range_of_days': 14 }; for key in my_dict: if type(my_dict[key]) == type([]): for index, item in enumerate(my_dict[key]): my_dict[key][index] = item.lower(); print(my_dict)
run
|
edit
|
history
|
help
0
Sum of two numbers
PyDescript
cod
PyWeekD
PyCutRod
calculate the sum of string 201test70de88qa ( only numbers)
strong1
Partition To 2 Equal Sum Subsets From An Array of Integers
S
PyGuessTheNum2