#7 Python Lists in Telugu | Python Lists | Python in Telugu| Python Lists | Lists In Python|
Explained in very easy mode and every one can understand easily!!
Demo Code Python Lists
cityList= [ "Hyderabad","Vizag","Bangalore","Chennai","Kolkata","Mumbai","Delhi","Pune"]
print(cityList)
print(cityList[0])
print(cityList[1])
print(cityList[2])
print(cityList[3])
print(cityList[4])
print(cityList[-1])
print(cityList[-2])
print(cityList[-3])
print(cityList[-4])
print(cityList[3:6])
#Append
cityList.append('Surat')
print(cityList)
#length
print(len(cityList))
#Clear
cityList.clear()
print(cityList)
#Insert
cityList.insert(4, "Surat")
print(cityList)
#Pop
cityList.pop(4)
print(cityList)
#Extend
carList = ['Tata', 'Maruthi', 'Hyundai']
cityList.extend(carList)
print(cityList)
#Reverse
cityList.reverse()
print(cityList)