PROGLIB_ACADEMY Telegram 2276
✏️ Вопрос с реального собеседования по Python

Как работает умножение строк в Python?

Допустим, у нас есть строка 'cat', и мы хотим умножить её на 3. Давайте посмотрим:

'cat' * 3
# => 'catcatcat'


Что произошло?

Python просто повторил содержимое строки трижды и вернул новый результат. Это удобно, когда нужно быстро создать повторяющийся шаблон или, например, добавить разделитель

#собес_academy
Please open Telegram to view this post
VIEW IN TELEGRAM



tgoop.com/proglib_academy/2276
Create:
Last Update:

✏️ Вопрос с реального собеседования по Python

Как работает умножение строк в Python?

Допустим, у нас есть строка 'cat', и мы хотим умножить её на 3. Давайте посмотрим:

'cat' * 3
# => 'catcatcat'


Что произошло?

Python просто повторил содержимое строки трижды и вернул новый результат. Это удобно, когда нужно быстро создать повторяющийся шаблон или, например, добавить разделитель

#собес_academy

BY Proglib.academy | IT-курсы




Share with your friend now:
tgoop.com/proglib_academy/2276

View MORE
Open in Telegram


Telegram News

Date: |

It’s easy to create a Telegram channel via desktop app or mobile app (for Android and iOS): While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. Informative Ng, who had pleaded not guilty to all charges, had been detained for more than 20 months. His channel was said to have contained around 120 messages and photos that incited others to vandalise pro-government shops and commit criminal damage targeting police stations.
from us


Telegram Proglib.academy | IT-курсы
FROM American