+ 6

How to take required Str from a Str in python

For eg we are give a str in python like "2Spam + 3Eggs = 4Spameggs" Now how can I extract "2", "Spam", "3", "Eggs", "4", "Spameggs" ? So that I can assign them to different variables

24th Jun 2018, 1:57 PM
ᏳoƊoԲᎮc !
ᏳoƊoԲᎮc ! - avatar
2 Answers
24th Jun 2018, 4:25 PM
John Wells
John Wells - avatar
+ 5
John Wells Thanks for helping 😊
24th Jun 2018, 5:09 PM
ᏳoƊoԲᎮc !
ᏳoƊoԲᎮc ! - avatar