Skip to content
Advertisement

Don’t know how to saparate the integral from the list in python

Hello~ This is my first time to use stackoverflow.

I have difficulty solving the question.

I want to add the integrals but don’t know how to separate from the list and transfer from strings to integrals.

Could you help me? thank you.

Sorry my English is not good.

the code:

JavaScript

input:

JavaScript

and my output is:

JavaScript

the output I want :

JavaScript

Advertisement

Answer

Go for something like this:

JavaScript

If can not understand any part please comment.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement