Day 177 : Text wrapping using Python

preview_player
Показать описание
Join this channel to get access to perks:

We are supporting freely to everyone. Join us for live support.

Рекомендации по теме
Комментарии
Автор

import textwrap
long_text = 'Microsoft Learn is a library of technical documentation and training for end users, developers, and IT professionals who work with Microsoft products. Microsoft Learn was introduced in September 2018.'
fill_text = textwrap.fill(long_text, width = 25)
print(fill_text)
wrap_text = textwrap.wrap(long_text, width = 25)
print(wrap_text)
print(wrap_text[0])
wrap_text[0] = 'Documentation is a'
print(wrap_text)
for n in wrap_text:
print(n)

Hemakumargantepalli
visit shbcf.ru