반응형 trinker1 Number of Things Challenge 함수 만들기 # Make a function how_many that, given a list of a number# and a thing name, returns a grmmatically correct sentence# describing the number of things.## >>>> how_many([5, "trinket"])# There are 5 trinkets.# >>>> how_many([1, "king"])# There is 1 king. def how_many(the_list): # Add code here that returns the answer sentence = "" for i in range(len(the_list)): if(i == 0): sentence += str(the_list[.. 2018. 8. 20. 이전 1 다음 반응형