Python 3 slice() built-in function TUTORIAL

preview_player
Показать описание
Tutorial on how to use the slice() built-in function from the Python 3 Standard Library.

📖 Please check out my Udemy course here:

Documentation:

⚙️ Recommended Computer Gear:

✈️ Recommended Digital Nomad Gear:
Рекомендации по теме
Комментарии
Автор

Note that while [::2] would get you odd numbers, you can offset it with the start [1::2]
Probably neither faster or more readable than %

xdanic
Автор

Thank you for the video. I am grateful for your time and contribution. Kind regards, Akira.

akira_asahi
Автор

slice() is a class, not function. I wrote in new project "print(slice(0.0, 1.2, 0.2))" and "print(slice)" -> no error but in command line written "slice(0.0, 1.2, 0.2)" and "<class 'slice'>".

vladumnik
Автор

You could do a much better explanation

Manibutt
visit shbcf.ru