27.10.17

Code Snippet

>>>suits = ['Spades', 'Clubs', 'Diamonds', 'Hearts']
>>>values = ['Ace', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King']
>>>print suits[0]

>>>print values[12]

>>> suits =['Spades', 'Clubs', 'Diamonds', 'Hearts']
>>> suits.sort()
>>> print suits

>>> suits.reverse()
>>> print suits

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.