convert a list to a string

Bart Nessux bart_nessux at hotmail.com
Thu Jan 8 22:21:13 EST 2004


number = random.sample(range(count), 1)

This makes 'number' into a one entry list (I don't know why as 'count' 
is an integer). Is there an easy way to convert 'number' back to an int?

TIA




More information about the Python-list mailing list