On 27/01/20 1:53 PM, Richard Damon wrote:
On 1/26/20 6:52 PM, DL Neil via Python-list wrote:
On 27/01/20 4:15 AM, ferzan saglam wrote:
Hello people, I have written the code below which works fine, but it
has one small problem. Instead of printing one (x) on the first line,
it prints two.
I ha
On 1/26/20 6:52 PM, DL Neil via Python-list wrote:
On 27/01/20 4:15 AM, ferzan saglam wrote:
Hello people, I have written the code below which works fine, but it
has one small problem. Instead of printing one (x) on the first line,
it prints two.
I have tried everything in my knowledge, but ca
On 27/01/20 4:15 AM, ferzan saglam wrote:
Hello people, I have written the code below which works fine, but it has one
small problem. Instead of printing one (x) on the first line, it prints two.
I have tried everything in my knowledge, but cannot fix the problem.
Thanks for any help in advance.
On 1/26/20 6:11 PM, Greg Ewing wrote:
On 27/01/20 4:15 am, ferzan saglam wrote:
for x in range ( 0, 10):
stars = 'x'
count = 0
By the way, this 'for' loop is unnecessary. The end result is just to
give initial values to three names. You don't need a loop at all for
that, just three assign
On 27/01/20 4:15 am, ferzan saglam wrote:
for x in range ( 0, 10):
stars = 'x'
count = 0
By the way, this 'for' loop is unnecessary. The end result is just to
give initial values to three names. You don't need a loop at all for
that, just three assignment statements.
On 1/26/20 10:15 AM, ferzan saglam wrote:
Hello people, I have written the code below which works fine, but it has one
small problem. Instead of printing one (x) on the first line, it prints two.
I have tried everything in my knowledge, but cannot fix the problem.
Thanks for any help in advance.
On Sunday, January 26, 2020 at 3:26:40 PM UTC, Dan Purgert wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> ferzan saglam wrote:
> > Hello people, I have written the code below which works fine, but it
> > has one small problem. Instead of printing one (x) on the first line,
> > it p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
ferzan saglam wrote:
> Hello people, I have written the code below which works fine, but it
> has one small problem. Instead of printing one (x) on the first line,
> it prints two.
> I have tried everything in my knowledge, but cannot fix the problem
>
> I need the triangle to be in reverse. The assignment requires a nested
> loop to generate a triangle with the user input of how many lines.
>
> Currently, I get answers such as: (A)
>
> OOO
> OO
> O
>
> When I actually need it to be like this: (B)
>
> OOO
>OO
> O
>
Try the
On 2017-05-25 17:28, Victor Demelo wrote:
I need the triangle to be in reverse. The assignment requires a nested loop to
generate a triangle with the user input of how many lines.
Currently, I get answers such as:
OOO
OO
O
When I actually need it to be like this:
OOO
OO
O
I j
On Thu, 25 May 2017 09:28:31 -0700 (PDT), Victor Demelo wrote:
> I need the triangle to be in reverse. The assignment requires a nested
> loop to generate a triangle with the user input of how many lines.
>
> Currently, I get answers such as:
>
> OOO
> OO
> O
>
> When I actually need it to be
On Thursday, May 25, 2017 at 12:28:45 PM UTC-4, Victor Demelo wrote:
> I need the triangle to be in reverse. The assignment requires a nested loop
> to generate a triangle with the user input of how many lines.
>
> Currently, I get answers such as:
>
> OOO
> OO
> O
>
> When I actually need
On Thursday, May 25, 2017 at 12:28:45 PM UTC-4, Victor Demelo wrote:
> I need the triangle to be in reverse. The assignment requires a nested loop
> to generate a triangle with the user input of how many lines.
>
> Currently, I get answers such as:
>
> OOO
> OO
> O
>
> When I actually need
* Johann Spies, on 16.07.2010 16:34:
I am overlooking something stupid.
I have two files: one with keywords and another with data (one record per line).
I want to determine for each keyword which lines in the second file
contains that keyword.
The following code is not working. It loops throu
Johann Spies wrote:
I am overlooking something stupid.
I have two files: one with keywords and another with data (one record per line).
I want to determine for each keyword which lines in the second file
contains that keyword.
The following code is not working. It loops through the second fil
Johann Spies wrote:
I am overlooking something stupid.
I have two files: one with keywords and another with data (one record per line).
I want to determine for each keyword which lines in the second file
contains that keyword.
The following code is not working. It loops through the second fil
On Fri, Jul 16, 2010 at 8:34 AM, Johann Spies wrote:
> I am overlooking something stupid.
>
> I have two files: one with keywords and another with data (one record per
> line).
>
> I want to determine for each keyword which lines in the second file
> contains that keyword.
>
> The following code
On 30 Nov 2005 00:37:43 -0800, [EMAIL PROTECTED] wrote:
>
>viewcharts wrote:
>> I am reading two text files comparing the values in one to the other,
>> this requires two loops. The problem is that when the inner loop is
>> finished, it never goes back into the loop. Any suggestions?
>>
>>
>> for
> Micah Elliott wrote:
> > On Nov 29, viewcharts wrote:
> >>I am reading two text files comparing the values in one to the other,
> >>this requires two loops.
> >
> > Or you could have a look at difflib.
> > http://docs.python.org/lib/differ-examples.html
On Nov 30, Steve Holden wrote:
> Indeed,
Micah Elliott wrote:
> On Nov 29, viewcharts wrote:
>
>>I am reading two text files comparing the values in one to the other,
>>this requires two loops.
>
>
> Or you could have a look at difflib.
>
> http://docs.python.org/lib/differ-examples.html
>
Indeed, but I personally don't see a way to
On Nov 29, viewcharts wrote:
> I am reading two text files comparing the values in one to the other,
> this requires two loops.
Or you could have a look at difflib.
http://docs.python.org/lib/differ-examples.html
--
_ _ ___
|V|icah |- lliott <>< [EMAIL PROTECTED]
"
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
>> viewcharts wrote:
>>
>>> I am reading two text files comparing the values in one to the other,
>>> this requires two loops. The problem is that when the inner loop is
>>> finished, it never goes back into the loop. Any suggestions?
>>>
>>> for refSy
[EMAIL PROTECTED] wrote:
> viewcharts wrote:
>
>>I am reading two text files comparing the values in one to the other,
>>this requires two loops. The problem is that when the inner loop is
>>finished, it never goes back into the loop. Any suggestions?
>>
>>
>>for refSymbol in symbols.readlines():
viewcharts wrote:
> I am reading two text files comparing the values in one to the other,
> this requires two loops. The problem is that when the inner loop is
> finished, it never goes back into the loop. Any suggestions?
>
>
> for refSymbol in symbols.readlines():
> for lookupSymbol in myfil
viewcharts wrote:
> I am reading two text files comparing the values in one to the other,
> this requires two loops. The problem is that when the inner loop is
> finished, it never goes back into the loop. Any suggestions?
>
>
> for refSymbol in symbols.readlines():
> for lookupSymbol in my
25 matches
Mail list logo