Despy()
❔ help with an exercise
I've encountered a weird problem that idk how to fix. Say we've got a string "31131123521" how do i make it so each number of the string is multiplied by one another so the string we have got will be equal to 3 * 1 * 1 * 3 * 1 * 1 * 2 * 3 * 5 * 2 * 1 (this is equal to 540). I have trouble finding a patter or solution to this when it seems very simple. Given a string i just want to multiply each number inside of it
42 replies