Python Interviews: Difference between revisions
→Sorting
Line 243:
c = [1,5,2,3,9,6,2,0]
c.sort()
= Reverse a String =
'hello world'[::-1]
'dlrow olleh'
|
Line 243:
c = [1,5,2,3,9,6,2,0]
c.sort()
= Reverse a String =
'hello world'[::-1]
'dlrow olleh'
|