Trending Python Discussions

Follow

Ask the Community


Ask any professional question and get answers from other specialists.

Stream language
Nancy Nainan's image  
Answer added by  Nancy Nainan, Technical Specialist, Nokia
13 hours ago

Negative Index to reverse the list or access the list in reverse way. fruit = ['a','p','p','l','e'] print(fruit[-1]) --& ... See More

Poti Jyothi's image  
Answer added by  Poti Jyothi
1 day ago

Negative indexing is each traversal moves from tail to head, starting with the last element.

Nehmetallah Ghanem's image  
Answer added by  Nehmetallah Ghanem
3 days ago

Negative Index in python starts counting from the end of the data structure rather than the beginning

Aly  Mtsumi's image  
Answer added by  Aly Mtsumi, Full Stack Sofware Developer, Revolution Analytics
3 days ago

In python the negative index is used to start slicing from the end of the list, -1 would be the last element in the list.

Veluru venkata sai  Vanipriya's image
Question added by Veluru venkata sai Vanipriya
3 months ago

Is there giving any training of project?‎

How to code in Python language of project‎

Answers:
0
Followers:
Views:
3
Vote Count:
0
Answer should contain a minimum of 25 characters.
Reyad Al-Noubeh's image  
Answer added by  Reyad Al-Noubeh, IT Department Executive Director, Talal Abu Ghazaleh International Group
8 days ago

Negative indexing in Python provides a convenient way to access elements from the end of a sequence, such as lists, tuples, or strings. When using negative indices, Pytho ... See More

Komakula  Ramani's image
Question added by Komakula Ramani
3 months ago
Answers:
1
Followers:
Views:
3
Vote Count:
0
Answer should contain a minimum of 25 characters.
Tambala Mahesh Kumar's image
Question added by Tambala Mahesh Kumar
1 year ago
Answers:
1
Followers:
Views:
125
Vote Count:
0
Answer should contain a minimum of 25 characters.
Raza  Ullah's image  
Answer added by  Raza Ullah, Associate Python Developer, International Medical Corps
9 days ago

In Python negative refers to accessing elements from the end of a sequence such as a list or string. For example my_list = [1,22,32,54,67] my_list[-1] will give 67.my_lis ... See More

komal farooq's image  
Answer added by  komal farooq, Senior Project Manager, Code Creators Inc.
9 days ago

Negative indexing in Python is like looking at a list or a string from the end instead of the beginning. So, instead of starting from 0, you start counting backwards from ... See More