- 2

What do u mean by this ":" thing in python?

Basics of python

15th Jun 2020, 3:00 PM
Akhil
Akhil - avatar
2 odpowiedzi
+ 1
As uday kiran told : is used for slicing it's also used in logical statement such as if else and loops like for and while .
15th Jun 2020, 3:16 PM
Ayush Kumar
Ayush Kumar - avatar
0
':' is a slice operator It will break down the strings,lists,tuples etc...
15th Jun 2020, 3:11 PM
uday kiran
uday kiran - avatar