4. Carefully go through the code given below and
answer the questions based on it :
testStr = "abcdefghi"
inputStr = input ("Enter integer:")
inputInt = int(inputStr)
count = 2
newStr ='
while count <= inputInt :
newStr = newStr + testStr[0 : count]
testStr = teststr[2:] #Line 1
count = count + 1
print (newstr)
# Line 2
print (teststr)
# Line 3
print (count)
# Line 4
print (inputlnt)
# Line 5
Attachments:
Answers
Answered by
1
Answer:
I can't see perfectly please click the pic clearly
Explanation:
ok
Similar questions