Is Python like C# in respect to chaining?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Endkill Emanon
    New Member
    • Dec 2010
    • 9

    Is Python like C# in respect to chaining?

    I'm wondering if you can take code like.
    Code:
    line.replace(',.',',0.')
    line.replace('0.,',',0.0,')
    line.replace('\n',',')
    and do something like

    Code:
    line.replace(',.',',0.').replace('0.,',',0.0,').replace('\n',',')
    I don't program python but I'm trying to help someone else on a different subject and was just interested if it was possible?
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    Try it and see for yourself.

    Comment

    • Endkill Emanon
      New Member
      • Dec 2010
      • 9

      #3
      Don't exactly have the bandwidth or time to learn a whole new language. It was just a simple question....

      Comment

      Working...