Skip to content

Commit 0c739f8

Browse files
authored
Update python.md
1 parent 139dcc1 commit 0c739f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ list1 + list2 # combine two list
4343
lst.sort() # In-place sort
4444
sorted(lst) # Sorted copy
4545
lst.reverse() # In-place reverse
46-
reversed(lst) # Reversed copy
46+
list(reversed(lst)) # Reversed copy
4747
list.count(value) # Counts number of elements with the specified value
4848
",".join(lst) # Join elements into a string if all elements are strings
4949
",".join(map(str, lst)) # Join elements into a string

0 commit comments

Comments
 (0)