Umesh, for your learning, try to write this in a single python statement, for this search for comprenhension
On Tue, May 7, 2013 at 11:47 AM, Noufal Ibrahim <nou...@nibrahim.net.in>wrote: > Umesh Tiptur <umeshreloa...@yahoo.com> writes: > > > Hi all, > > > > Thanks for the reply for the basic of basic qn: But still I am stuck > > with another problem, i.e I want to add a number which is 23. I want > > a digit answer in this case. > > > > Any idea how to split a number into digits to add them. > > This is a small problem but which can exercise your imagination a > little. Why don't you try a few ideas and post them back? There will be > suggestions here and by the time we're done, you'll end up learning > more. > > [...] > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers