hwchung hwchung - 1 year ago 118
Python Question

geeksforgeeks practice: how to take inputs?

I am trying to code in geeksforgeeks practice in this link: http://www.practice.geeksforgeeks.org/problem-page.php?pid=282

I use Python. The default code does not have anything. How should I take my inputs and return my outputs?

Answer Source

hope it work for you :

T = int(raw_input()) 
if T < 0 or T > 10 :
    print '0<=T<=10 !'
for x in xrange(T):
    print '.'.join(str(raw_input()).split('.')[::-1])
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download