+ 4
For inside for and join
for i in a: print("".join([k*v for k,v in i])) could someone explain this?
4 Answers
+ 20
"".join is used to convert list into string
since in the 1st two elements k is none
so only 5#s will be obtained by k*v thing...
'#'*5=#####
if there are other elements it will be evaluated accordingly... concept will be same...
Good Luck with python
+ 3
a is something like this [[(' ', 95)], [(' ', 14), ('#',5)....]]
so when we run the code a word appear in hashs ###
I didn't understand what has happend
no enemurate used
+ 3
I think I have understand it
thank you
0
while