الحوارات الشائعة في مجتمع تعليم الآلات

تابعنا

اسأل مجتمع المهنيين


اطرح أسئلة مهنية واحصل على أجوبة متميزة من المتخصصين الآخرين.

تدفق اللغة
jahangir khan's image  
تم إضافة الجواب من قبل  jahangir khan, I.T Support Assistant, Pakistan Air Force
قبل 22 ساعة

my_list = [10, 20, 30, 40, 50] print(my_list[-1]) # Accessing the last element: 50print(my_list[-2]) # Accessing the second-to-last element: 40print(my_list[-3]) # Acces ... الإطلاع على المزيد

Mohanesh Barge's image  
تم إضافة الجواب من قبل  Mohanesh Barge, Service engineer, A Square Technosolution, Pune
قبل يوم واحد

a negative index is a way to extract elements in a list, tuple, or string by counting from the end of the sequence instead of the beginning

Minal Prindawankar's image  
تم إضافة الجواب من قبل  Minal Prindawankar
قبل يوم واحد

Negative indexing in Python is a way to access elements of a list, tuple, or string from the end of the data structure instead of the beginning. 

Imtiyaz Bhat's image  
تم إضافة الجواب من قبل  Imtiyaz Bhat
قبل 2 يومين

It is meant for the purpose of Slicing in the python 3.0 at the end of the string.

Nancy Nainan's image  
تم إضافة الجواب من قبل  Nancy Nainan, Technical Specialist, Nokia
قبل 3 أيام

Negative Index to reverse the list or access the list in reverse way. fruit = ['a','p','p','l','e'] print(fruit[-1]) --& ... الإطلاع على المزيد

Poti Jyothi's image  
تم إضافة الجواب من قبل  Poti Jyothi
قبل 4 أيام

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

Nehmetallah Ghanem's image  
تم إضافة الجواب من قبل  Nehmetallah Ghanem
قبل 5 أيام

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

Aly  Mtsumi's image  
تم إضافة الجواب من قبل  Aly Mtsumi, Full Stack Sofware Developer, Revolution Analytics
قبل 5 أيام

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.

Reyad Al-Noubeh's image  
تم إضافة الجواب من قبل  Reyad Al-Noubeh, IT Department Executive Director, Talal Abu Ghazaleh International Group
قبل 10 أيام

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 ... الإطلاع على المزيد

Raza  Ullah's image  
تم إضافة الجواب من قبل  Raza Ullah, Associate Python Developer, International Medical Corps
قبل 12 يوما

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 ... الإطلاع على المزيد