How to take required Str from a Str in python | Sololearn: Learn to code for FREE!
+ 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 Respostas
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