filmov
tv
Python for Beginners - Sets & Typecasting in python Explained!

Показать описание
In this video we will learn about sets and typecasting in python with examples. A set is a collection of unique items. We can create a set by using the set() function. We can add items to a set by using the add() method. We can remove items from a set by using the remove() method. We can check if an item is in a set by using the in keyword. We can also convert a list to a set by using the set() function. Typecasting is the process of converting one data type to another. We can convert a string to an integer by using the int() function. We can convert a string to a float by using the float() function. We can convert an integer to a string by using the str() function.