AndreyTyshevich / prog_Tyshevich

0 stars 0 forks source link

Цикл может быть не только от нуля с шагом единица. #3

Closed antosha417 closed 5 years ago

antosha417 commented 5 years ago

https://github.com/AndreyTyshevich/prog_Tyshevich/blob/0149f80de0748a4e5f2cb1fb94f3db3d35ad5c85/5.py#L8-L11 Сможешь не заводить 2 переменные 'x' и 'k', а обойтись только одной и назвать её обдумано? range(start, stop[, step])

https://github.com/AndreyTyshevich/prog_Tyshevich/blob/0149f80de0748a4e5f2cb1fb94f3db3d35ad5c85/8.py#L3-L7