<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
thanks for the reply<br>i did one question<br>i will tel u my progress in another question n then u tel me that what next must be done<br><br>thanks<br>Write a small Python program that generates the list of all pairs of characters c and<br>its doubling 2  c, where c moves through all the letters of the string "foobar" and prints it out.<br>The result will look like:<br>[(’f’, ’ff’), (’o’, ’oo’), (’o’, ’oo’), (’b’, ’bb’), (’a’, ’aa’), (’r’, ’rr’)]<br><br>thatz the question<br>i think that first i woulf take a string 'foobar'<br>convert it into a list<br>take itz length<br>n then do indexing<br>and then multiply using for loop<br><br>herez my code<br><br>a='foobar'<br>b=list(a)<br>print b<br>['f','o','o','b','a','r']<br><br>c=len(b)<br>6<br><br><br>thatz where i am<br>now i wana do the indexing of each character so that i use for loop n multply each character with 2<br><br><br>waiting for ur reply<br><br><br>&gt; Date: Sun, 31 Jan 2010 11:01:19 -0500<br>&gt; From: amonroe@columbus.rr.com<br>&gt; To: tutor@python.org<br>&gt; Subject: Re: [Tutor] can any one help<br>&gt; <br>&gt; <br>&gt; &gt; 1 1.1 Write a Python program with a loop that prints out a sequence<br>&gt; &gt; of numbers as follows:15 13 11...3 1 -1<br>&gt; <br>&gt; Hint 1: Learn about FOR loops.<br>&gt; <br>&gt; Hint 2: Learn about the RANGE command.<br>&gt; <br>&gt; Hint 3: Show us some code you have written. Even if yours doesn't<br>&gt; work, we can probably spot WHY it doesn't work.<br>&gt; <br>&gt; Alan<br>&gt; <br>&gt; _______________________________________________<br>&gt; Tutor maillist  -  Tutor@python.org<br>&gt; To unsubscribe or change subscription options:<br>&gt; http://mail.python.org/mailman/listinfo/tutor<br>                                               <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/196390707/direct/01/' target='_new'>Sign up now.</a></body>
</html>