Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

The code below the directions is all I have gotten so far would love any help to solve this thanks.

The Code Below The Directions Is All I Have Gotten So Far Would Love Any Help To Solve This Thanks class=

Sagot :

tonb

Answer:

variable = input("Enter some text: ")

midIndex = (len(variable) // 2)  

midFix = variable[midIndex-1:midIndex+2]

print('Length is:', len(variable))

print('Middle index is:', midIndex)

print('Midfix of 3 is:', midFix)

Explanation:

You will want to do integer division here (//)

Also, keep in mind that the very first character of the string has index 0, which is why the midFix runs from  midIndex-1 to midIndex+2