Telegram Group & Telegram Channel
Что делает [::-1] ?

❗️ Ответ: [::-1] используется для изменения порядка массива или последовательности на обратный.

🔍 Например:
import array as arr
My_Array=arr.array('i',[1,2,3,4,5])
My_Array[::-1]


Вывод : array('i', [5, 4, 3, 2, 1])

🌟 [::-1] перепечатывает обратную копию упорядоченных структур данных, таких как массив или список. Исходный массив или список остается неизменным.

@python_job_interview
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/python_job_interview/904
Create:
Last Update:

Что делает [::-1] ?

❗️ Ответ: [::-1] используется для изменения порядка массива или последовательности на обратный.

🔍 Например:

import array as arr
My_Array=arr.array('i',[1,2,3,4,5])
My_Array[::-1]


Вывод : array('i', [5, 4, 3, 2, 1])

🌟 [::-1] перепечатывает обратную копию упорядоченных структур данных, таких как массив или список. Исходный массив или список остается неизменным.

@python_job_interview

BY Python вопросы с собеседований


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_job_interview/904

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Can I mute a Telegram group?

In recent times, Telegram has gained a lot of popularity because of the controversy over WhatsApp’s new privacy policy. In January 2021, Telegram was the most downloaded app worldwide and crossed 500 million monthly active users. And with so many active users on the app, people might get messages in bulk from a group or a channel that can be a little irritating. So to get rid of the same, you can mute groups, chats, and channels on Telegram just like WhatsApp. You can mute notifications for one hour, eight hours, or two days, or you can disable notifications forever.

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

telegram from us


Telegram Python вопросы с собеседований
FROM USA