Gregs-E-Tagger practice question - need help

I’ve come across this question while doing Python practice questions, and it’s got me confused.

'Write a function called gregs_e_tagger that takes a string as an argument and inserts "greg" in the middle of the string, and then returns the new “greg-i-fied” string.

For odd length strings, consider the “middle” to be left of the middle character.’

Could someone please help me in how I could go about doing this?

Might be worth linking the questions with a URL. I’d suggest breaking it up into smaller solvable pieces. What would be the middle of a string? How would you normally access a value in a string? Can you think of a way to get the middle using code?

1 Like