[Tutor] can any one help

invincible patriot invincible_patriot at hotmail.com
Sat Jan 30 22:33:37 CET 2010



hii am stuck in few tasks can some one help me in thathere are first few tasks
1how can i print the following series, using a loop151311...31-1========2Write a small Python program that generates the list of all pairs of characters c andits doubling 2  c, where c moves through all the letters of the string "foobar" and prints it out.The result will look like:[(’f’, ’ff’), (’o’, ’oo’), (’o’, ’oo’), (’b’, ’bb’), (’a’, ’aa’), (’r’, ’rr’)]
please help me out in these two tasks
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390707/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100130/2e6e6f17/attachment.htm>


More information about the Tutor mailing list