I am not able get the sorted values from the input
<p>problem with sorting</p>

<pre><code>a = raw_input("Do you know the number of inputs ?(y/n)")    
if a == 'y':    
   n = int(input("Enter the number of inputs : "))    
   total = 0    
   i = 1    
  while i &lt;= n:     
   s = input()    
   total = total + int(s)    
   i = i + 1    
   s.sort()    
   print s     
   print('The sum is ' + str(total))
</code></pre>

<p>Store the numbers in a list. Then use sum(list) to get the sum of elements in the list, and sorted(list) to get the list sorted in ascending order.</p>

<pre><code>    n = int(input("Enter the number of inputs: "))

    l=[]

    for i in range(n):

        s = input()

        l.append(int(s))

    print('The sum is', sum(l))

    print('Sorted values', sorted(l))
</code></pre>

<p>Were you looking for this?</p>

python