-
initialize_list_with_range30 seconds of Code 2022. 2. 13. 10:19
def ilwr(end, start=0, step=1): print(list(range(start, end, step))) ilwr(5) ilwr(7,3) ilwr(9,0,2)
>>[0, 1, 2, 3, 4]
>>[3, 4, 5, 6]
>>[0, 2, 4, 6, 8]반응형'30 seconds of Code' 카테고리의 다른 글
#20 in_range (0) 2022.02.08 has_duplicates (0) 2022.02.08 filter_non_unique (0) 2022.02.08 왼손코딩 1일1파이썬 9,10,11,12 (0) 2022.02.04 [python]count_occurrences /degrees_to_rads/*difference (0) 2022.02.04