मैं कुछ पायथन अभ्यास का पालन कर रहा हूं और मैं इस पर फंस गया हूं।पायथन में वास्तव में क्या हैं?
# C. sort_last
# Given a list of non-empty tuples, return a list sorted in increasing
# order by the last element in each tuple.
# e.g. [(1, 7), (1, 3), (3, 4, 5), (2, 2)] yields
# [(2, 2), (1, 3), (3, 4, 5), (1, 7)]
# Hint: use a custom key= function to extract the last element form each tuple.
def sort_last(tuples):
# +++your code here+++
return
टुपल क्या है? क्या उनका मतलब सूची की सूची है?
ये अभ्यास कहां हैं? आप किस ट्यूटोरियल का उपयोग कर रहे हैं? –
Google एक। –
@ सर्जियो क्या आप एक लिंक प्रदान कर सकते हैं? – RYFN