Break the line on Python.



  • There's a line like that. sdd,L12,W45,H78,7cm,K,D6

    We need to break by 12.457.7.7 per individual variables to enter the base.

    It's an eletary mission. ♪ We need to get to Python, never work for Python, thank you.



  • I'm not sure I got the question right, but the line on the sequence of values breaks the split function:

               t=s.split(',')
    

    And then I'd be with help and if I checked if the text contained a number, and if so, I would record it in the body.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2