PYTHONTURBORU Telegram 535
🐣 Задача по Python #37

Описание

Напишите генератор, который будет генерировать последовательность чисел Фибоначчи, но с ограничением по максимальному значению. Генератор должен прекратить работу, когда очередное число Фибоначчи превысит заданное ограничение.

Примеры
for num in fibonacci_with_limit(100):
print(num) # 1 1 2 3 5 8 13 21 34 55 89


Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи
2



tgoop.com/pythonturboru/535
Create:
Last Update:

🐣 Задача по Python #37

Описание

Напишите генератор, который будет генерировать последовательность чисел Фибоначчи, но с ограничением по максимальному значению. Генератор должен прекратить работу, когда очередное число Фибоначчи превысит заданное ограничение.

Примеры

for num in fibonacci_with_limit(100):
print(num) # 1 1 2 3 5 8 13 21 34 55 89


Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tgoop.com/pythonturboru/535

View MORE
Open in Telegram


Telegram News

Date: |

3How to create a Telegram channel? Unlimited number of subscribers per channel The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said. The initiatives announced by Perekopsky include monitoring the content in groups. According to the executive, posts identified as lacking context or as containing false information will be flagged as a potential source of disinformation. The content is then forwarded to Telegram's fact-checking channels for analysis and subsequent publication of verified information.
from us


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM American