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

تابعنا

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


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

تدفق اللغة
Anushka kumari's image  
تم إضافة الجواب من قبل  Anushka kumari
قبل 2 يومين

In python, negative index is a feature that allows you to access elements from the end of a sequence, such as a list, tuple, or string. Negative indexing starts from the ... الإطلاع على المزيد

Veluru venkata sai  Vanipriya's image
تم إضافة السؤال من قبل Veluru venkata sai Vanipriya
قبل 4 أشهر

Is there giving any training of project?‎

How to code in Python language of project‎

الإجابات:
0
تابع:
المشاهدات:
3
عدد الأصوات:
0
يجب أن تتألف الإجابة من 25 حرفاً على الأقل.
Komakula  Ramani's image
تم إضافة السؤال من قبل Komakula Ramani
قبل 3 أشهر
الإجابات:
1
تابع:
المشاهدات:
3
عدد الأصوات:
0
يجب أن تتألف الإجابة من 25 حرفاً على الأقل.
Mathew Fernandus's image  
تم إضافة الجواب من قبل  Mathew Fernandus, Data Analyst, Texila(P)Ltd.
قبل 10 أيام

Negative indexing in Python allows you to access elements from the end of a list or string. -1 represents the last element, -2 the second to last, and so on. It's ha ... الإطلاع على المزيد

Saeed Ahmadvand's image  
تم إضافة الجواب من قبل  Saeed Ahmadvand
قبل 11 يوما

This can be very useful, especially when working with sequences of varying lengths or when you want to access elements relative to the end of the sequence.    

jahangir khan's image  
تم إضافة الجواب من قبل  jahangir khan, I.T Support Assistant, Pakistan Air Force
قبل 18 يوما

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, Sr Service engineer, Uster Technologies Ind Pvt Ltd
قبل 18 يوما

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
قبل 19 يوما

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
قبل 19 يوما

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
قبل 20 يوما

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