Earlier when discussing strings we introduced the concept of a sequence in Python. Lists can be thought of the most general version of a sequence in Python. Unlike strings, they are mutable, meaning the elements inside a list can be changed! In this section we will learn about: 1.) Creating lists 2.) Indexing and Slicing … Continue reading Lists in Python
Tag: list
DATA TYPES IN PYTHON
Since everything is object in python programming, So every values in python has a data type.The various data types in python are: Numbers. List. Tuples. Strings Set Dictionary 1.Numbers In python numbers are categorized as : Int (ex: 3, 4, 5 , …) Float (ex: 3.0, 4.0, 5.0 , …) Complex (ex:1+2j, 2+3j , 2+5j, … Continue reading DATA TYPES IN PYTHON
