+ 2
What will be the output... please tell me?
list=['suzuki', 'subaru', 'honda', 'maruti'] list.sort(reverse=True) print(list[3])
11 Antworten
+ 4
Sümît Kåßhyåp
You have received a good answer from Gogireddy Kavya, but I don't understand why you couldn't test this for yourself.
It took me less time to test your code than to write this response.
Remember, you will learn faster if you prove a function through your own attempt, than if you just ask for an answer to a question. (Homework?)
+ 3
If indentation error is not considered the answer is honda.
Because, first when we specify that reverse = true in sort . The meaning is that we are sorting the list in reverse order.
+ 2
thank you Rik Wittkopp
+ 2
Rik Wittkopp , I have tried for myself and I find error. I posted this question here. What is the problem in this..?
+ 2
Sümît Kåßhyåp
I am glad you tried for yourself, but your question did not indicate this and your code worked fine.
As such, I assumed you had not made an effort at self learning.
Please accept my apologies
+ 2
Sümît Kåßhyåp thank you
+ 1
Sümît Kåßhyåp Is the problem resovled?
+ 1
Gogireddy Kavya yaa, Thank you so much for this.....
+ 1
then please upvote my answer
+ 1
Gogireddy Kavya already I have done it....
0
Rik Wittkopp Sorry how can I accept it? I had tried it for myself firstly. So why will I tell lie from you?