464,773 Members | 1,244 Online
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,773 IT Pros & Developers. It's quick & easy.

# basic question about random array

 P: 1 Hi, I just started learning Python, here is an assignment I wrote. Expand|Select|Wrap|Line Numbers numbers = [54, 5, 81, 70, 36, 3, 44, 13, 99, 60, 51, 26, 73, 18, 9, 82, 83, 67, 63, 53, 15, 9, 29, 68, 45, 21, 33, 10, 5, 52, 85, 52, 57, 99, 84, 42, 31, 74, 56, 31, 5, 79, 42, 13, 15, 35, 73, 34, 40, 98, 7, 70, 70, 2, 82, 21, 62, 19, 50, 33, 26, 84, 28, 49, 25, 67, 80, 12, 82, 4, 67, 19, 67, 57, 83, 67, 22, 17, 36, 77, 6, 59, 3, 4, 39, 90, 24, 28, 78, 7, 46, 8, 1, 47, 91, 20, 0, 56, 65, 75]   for X in numbers :     if (X >= 30) and (X < 60):         text = " age- " + str(X)         print text   I would like to print the values in order from smallest number to largest number. I know it's probably very very basic but I really just could not solve it. Thanks for all your help. May 9 '12 #1