Sort in una variabile

« Older   Newer »
 
  Share  
.
  1. meh.
     
    .

    User deleted


    CODE
    > python3
    Python 3.1.1 (r311:74480, Oct 20 2009, 22:14:27)
    [GCC 4.4.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> a = input("Inserisci le lettere con uno spazio: ").split(" ")
    Inserisci le lettere con uno spazio: b c d e f z a q m r h
    >>> a.sort()
    >>> print(a)
    ['a', 'b', 'c', 'd', 'e', 'f', 'h', 'm', 'q', 'r', 'z']
     
    Top
    .
4 replies since 24/11/2009, 20:40   38 views
  Share  
.