Dear Sir, As-salamu Alaykum,Sir. In_Sha_Allah, I hope you are fine and healthy! [image: image.png] #List_Slicing Array = [1, 2, 4, 6, 7, 8, 10] print(Array[0:7]) # it's can print full Array [1, 2, 4, 6, 7, 8, 10]! It's Okay! print(Array[-1]) print(Array[-7:]) #By using negative array,it's can also print full Array [1, 2, 4, 6, 7, 8, 10]! It's also Okay! print(Array[-7:-1]) #⚠️But by using negative array,it's can't print print full Array⚠️ #But if i do this another way like below: print(Array[-8:-1]) #⚠️But by using negative array,it's can't print print full Array⚠️ #⚠️I know in python arral element print always = Array_Element - 1⚠️ #⚠️But it shoud have a solution in negative array,like this "print(Array[-8:-1])" or any other way!⚠️ #***Thank you Python***# *Yours Faithfully* *Saiful_Islam_Ratan * *Student,Department of CSE,United International University, Bangladesh!* -- United City, Madani Avenue, Badda, Dhaka - 1212, Bangladesh. Tel: +88 09604 UIU UIU (848 848) Web: www.uiu.ac.bd <http://www.uiu.ac.bd/>, Email: info@uiu.ac.bd <mailto:info@uiu.ac.bd>
participants (1)
-
Saiful Islam Ratan