v-kostyukov / ithillel-introduction-python

Introduction-Python
0 stars 0 forks source link

Задача работает не верно #4

Open Muxamedin opened 3 years ago

Muxamedin commented 3 years ago

https://github.com/v-kostyukov/ithillel-Introduction-Python/blob/a37e8716d126d7f07b7f13a9c45b17496ee90e43/HW10/treangle_sequence.py#L27

результат

Введите число n: 7 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7

ожидается :

Введите число n: 7 1 2 2 3 3 3 4

v-kostyukov commented 3 years ago

Изменил алгоритм: https://github.com/v-kostyukov/ithillel-Introduction-Python/blob/main/HW10/treangle_sequence.py