Filter
-
[Python] - Powerful Function개발/Python 2022. 7. 27. 14:12
1. Range range는 range(start, end, step) Option range's result start_number ~ end-1 collection list(range(5,10)) > [5, 6, 7, 8, 9] list(range(10,20,2)) > [10, 12, 14, 16, 18] 2. Enumerate Use repeat Loop we need to check times Loop return tuple( index , element ) for i, v in enumerate(t): print("index : {}, value: {}".format(i,v)) """ index : 0, value: 1 index : 1, value: 5 index : 2, value: 7 in..