Yes. A perfectly fine code for sorting in descending order. Just ignore that first guy. He is the type of person whose only goal in life is to prove others inferior.
Drawing with a Pencil (mutable): Imagine you draw a house with a pencil on a piece of paper at "Spot X450." If you decide you'd rather have a tree, you can erase the house and draw the tree on the same paper at "Spot X450." The paper stays in place; you just change what's on it. Drawing with a Marker (immutable): Now, if you draw a cat with a permanent marker on a piece of paper at "Spot X232" and later want to have a dog instead, you can't just erase the cat. You need to get a new piece of paper (say, at "Spot X237") to draw the dog. The original cat drawing remains unchanged on its paper.
operations on lists: 1:13 (concatenation) 2:47 3:10(multiplication) 3:47 4:02(==) 5:20 (
thanks, really appreciated.
@@usnaveen welcome :)
21:05
l=[1,4,3,5,8,12]
l.sort()
l.reverse()
print(l)
too redundant and inefficient. Just do
l.sort(reverse=True)
your code is fine and It is not too inefficient and redundant.
Yes. A perfectly fine code for sorting in descending order.
Just ignore that first guy. He is the type of person whose only goal in life is to prove others inferior.
MAJA AYA😊
Drawing with a Pencil (mutable): Imagine you draw a house with a pencil on a piece of paper at "Spot X450." If you decide you'd rather have a tree, you can erase the house and draw the tree on the same paper at "Spot X450." The paper stays in place; you just change what's on it.
Drawing with a Marker (immutable): Now, if you draw a cat with a permanent marker on a piece of paper at "Spot X232" and later want to have a dog instead, you can't just erase the cat. You need to get a new piece of paper (say, at "Spot X237") to draw the dog. The original cat drawing remains unchanged on its paper.
great cool understood
Dhnaywaad
Toooo much covered in just a 21 min video
I felt it was fine.
थैंक्यू