笨办法学Python3 习题32和习题33
习题32 循环和列表 the_count = [1, 2, 3, 3, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] #this first kind of for-loop through a list for number in the_count: print(This is count %d % number) #same as above for fruit in fruits: print(A
用户评论