Recently I was learning Python,and I know how to use usual loop of for
,but I can't understand the following codes of for
loop in python.Please show me a website to learn the details or explain how to use it,thank you very much;
def billboard(name, price = 30):
return sum(price for ch in name)