Skip to content

Commit

Permalink
Update python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoroste authored Dec 13, 2024
1 parent ae2ff51 commit a3aa21d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ list1 + list2 # combine two list
lst.sort() # In-place sort
sorted(lst) # Sorted copy
lst.reverse() # In-place reverse
reversed(lst) # Reversed copy
list.count(value) # Counts number of elements with the specified value
",".join(lst) # Join elements into a string if all elements are strings
",".join(map(str, lst)) # Join elements into a string
Expand Down

0 comments on commit a3aa21d

Please sign in to comment.