Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

theStr = This is a test

inputStr= input(" Enter integer: ")


inputInt = int(inputStr)
testStr = theStr

while inputlnt > 0


testStr = testStr[1:-1]

inputlnt =inputlnt - 1
testBool =' t ' in testStr
# Line 1
print (theStr)
# Line 2
print (testStr)
# Line 3
print (inputInt)
# Line 4
print (testBool)
is
) what output
Given the input integer 3,
produced by Line 1? i c a test

You might also like