By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,892 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

Is Python like C# in respect to chaining?

P: 9
I'm wondering if you can take code like.
Expand|Select|Wrap|Line Numbers
  1. line.replace(',.',',0.')
  2. line.replace('0.,',',0.0,')
  3. line.replace('\n',',')
and do something like

Expand|Select|Wrap|Line Numbers
  1. 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?
Dec 20 '10 #1

✓ answered by dwblas

Try it and see for yourself.

Share this Question
Share on Google+
2 Replies

Expert 100+
P: 624
Try it and see for yourself.
Dec 21 '10 #2

P: 9
Don't exactly have the bandwidth or time to learn a whole new language. It was just a simple question....
Dec 21 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.