[ create a new paste ] login | about

Link: http://codepad.org/3TcUS4Bq    [ raw code | output | fork ]

swapnilghorpade - Python, pasted on Feb 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
s=str(raw_input('Enter something'))
set1=s.split()
list1=[]
rev=[]
s4=''
for s1 in set1:
    list1.append(s1)     
while list1:
    s3=list1.pop()    
    s4+=s3
    s4+=' '
  
print s4   


Output:
1
2
3
4
Enter somethingTraceback (most recent call last):
  Line 1, in <module>
    s=str(raw_input('Enter something'))
EOFError


Create a new paste based on this one


Comments: