Join IDNLearn.com today and start getting the answers you've been searching for. Join our platform to receive prompt and accurate responses from experienced professionals in various fields.

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 :

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

We appreciate your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. IDNLearn.com provides the best answers to your questions. Thank you for visiting, and come back soon for more helpful information.