a=0
while(a!=""):
    a=raw_input()
    b=raw_input()
    c=len(b)
    l=b+a
    for i in range(1,c+1):
         t=a[:i] + b+a[i:]
         if t>l:
             l=l
         else:
             l=t
    print l

i am new to python...

  • created

    Apr '11
  • last reply

    Apr '11
  • 1

    reply

  • 128

    views

  • 2

    users

  • 1

    link

Not a problem but:
1.) "If at first you don't succeed, try try again" (From www.quotablebooks.com)
2.) You meanwhile should have found out that indents are important. So please use code tags when posting code.

Suggested Topics

Want to read more? Browse other topics in Python or view latest topics.