What do u mean by this ":" thing in python? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 2

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

Basics of python

15th Jun 2020, 3:00 PM
Akhil
Akhil - avatar
2 Réponses
+ 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