r/learnpython • • 1h ago

Stuck at Helsinki mooc.fi exercise

I have been doing one of the exercises in the mooc fi course : https://programming-26.mooc.fi

Specifically part 3 (working with strings - 15, the last one in that section), here's the question : https://programming-26.mooc.fi/part-3/2-working-with-strings#programming-exercise-the-second-occurrence

but sadly been days and couldn't get what's wrong with my solution, here it's as well : https://pastebin.com/kmHf6jjm

I tried to check for their discord server at :

https://programming-26.mooc.fi/support-and-assistance

But it keeps redirecting me to student of helsinki's login portal asking for a uni account, is the discord server public or restricted to those who attend the Helsinki University....or maybe I am missing something out

would appreciate the help whether for solving it or for how to access the discord server (or shedding some light on if it's accessible or not)

thanks in advance

0 Upvotes

3 comments sorted by

•

u/desrtfx but other languages pro 48m ago

Show your code and precisely describe your problems.

If you have no code yet, describe how you would approach the task in plain English.

A hint: it's a combination of .find() and slicing.

Can you find the first instance of a letter?

•

u/yusuke_guy 32m ago

yes ofc, i added a pastebin link for it (sorry if not the best way to share code), here it's : https://pastebin.com/kmHf6jjm

my solution with indeed using find then slicing after the first instance then using find again, and it seems to work when i run my own test and their test cases, but it fails to pass the exercise :(