Get help on this challenge

Debugging6


Please read this explanation before attempting debugging challenges.


My Python script has the wrong output again! Why does this always happen to me?

def NotImportant():
    answer = ''
    string = 'It hin KitI stim Efo RyO uToPR act icethis!'
    
    split = string.split()
    mixed = split[1]+split[4]+split[0]+split[8]+split[6]+split[3]+split[5]+split[2]+split[7]
    superSplit = mixed[10:18]+mixed[-17:]+mixed[:10]

    
    nine=superSplit[6]
    apple=superSplit[9]
    fire=superSplit[28]
    calf=superSplit[33]
    x=superSplit[10]
    t=superSplit[3]
    y=superSplit[17]
    a = (nine,apple,fire,calf,x,t,y)
    
    newList = [4,6,3,5,1,2,0]
    a = [a[i]for i in newList]
    
    for x in a:
        answer += x
    print answer
    
NotImportant()
print 'The above should read \"Python!\" but it just... doesn\'t!'
print 'Can you figure out what I did wrong?'

Downloadable source code can be found here.


You must be logged in to play.



Challenge by Futility.