Re: Nested Loop Code Help

2020-01-26 Thread DL Neil via Python-list
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

Re: Nested Loop Code Help

2020-01-26 Thread Richard Damon
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

Re: Nested Loop Code Help

2020-01-26 Thread DL Neil via Python-list
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.

Re: Nested Loop Code Help

2020-01-26 Thread Richard Damon
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

Re: Nested Loop Code Help

2020-01-26 Thread Greg Ewing
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.

Re: Nested Loop Code Help

2020-01-26 Thread Richard Damon
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.

Re: Nested Loop Code Help

2020-01-26 Thread ferzan saglam
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

Re: Nested Loop Code Help

2020-01-26 Thread Dan Purgert
-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

Nested Loop Code Help

2020-01-26 Thread ferzan saglam
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. for x in range ( 0, 10):

Re: how to exit from a nested loop in python

2019-02-09 Thread DL Neil
1) <= g[-1]: if (Temp[i]['cost'][j] <= (run_parameters.PSD): -- When this condition is true i want to break the nested loop and start from the begining served_count +=1 A.T[i]["First_index"]= s

Re: how to exit from a nested loop in python

2019-02-08 Thread Rurpy via Python-list
for s in range(g[0], g[-1]): > if (s+req_slots[j]-1) <= g[-1]: > if (Temp[i]['cost'][j] <= (run_parameters.PSD): -- When > this condition is true i want to break the nested loop and start from the > begining >

Re: how to exit from a nested loop in python

2019-02-08 Thread Peter Otten
if (s+req_slots[j]-1) <= g[-1]: > if (Temp[i]['cost'][j] <= (run_parameters.PSD): -- > When this condition is true i want to break the nested > loop and start from the begining >

how to exit from a nested loop in python

2019-02-07 Thread Kaka
Temp[i]['cost'][j] <= (run_parameters.PSD): -- When this condition is true i want to break the nested loop and start from the begining served_count +=1 A.T[i]["First_index"]= s A.T[i]["Last_index"]= s+re

Re: Nested Loop Triangle

2017-05-25 Thread Jason Friedman
> > 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

Re: Nested Loop to Generate Triangle

2017-05-25 Thread MRAB
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

Re: Nested Loop to Generate Triangle

2017-05-25 Thread Peter Pearson
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 > >

Nested Loop Triangle

2017-05-25 Thread Victor Demelo
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 I need the display (A) to

Re: Nested Loop to Generate Triangle

2017-05-25 Thread Victor Demelo
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 &

Re: Nested Loop to Generate Triangle

2017-05-25 Thread Victor Demelo
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 &

Nested Loop to Generate Triangle

2017-05-25 Thread Victor Demelo
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 just need to get it flipped-over on the

Re: First day beginner to python, add to counter after nested loop

2013-11-03 Thread jonas . thornvall
Den lördagen den 2:e november 2013 kl. 21:19:44 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >I certainly do not like the old bracket style it was a catastrophe, but > > >in honesty the gui editor of python should have what i propose, a parser > > >that indent automati

Re: First day beginner to python, add to counter after nested loop

2013-11-03 Thread jonas . thornvall
Den lördagen den 2:e november 2013 kl. 21:19:44 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >I certainly do not like the old bracket style it was a catastrophe, but > > >in honesty the gui editor of python should have what i propose, a parser > > >that indent automati

Re: First day beginner to python, add to counter after nested loop

2013-11-03 Thread Antoon Pardon
Op 02-11-13 21:19, Tim Roberts schreef: > jonas.thornv...@gmail.com wrote: >> >> I certainly do not like the old bracket style it was a catastrophe, but >> in honesty the gui editor of python should have what i propose, a parser >> that indent automaticly at loops, functions and end. > > Many edi

Re: First day beginner to python, add to counter after nested loop

2013-11-02 Thread Tim Roberts
jonas.thornv...@gmail.com wrote: > >I certainly do not like the old bracket style it was a catastrophe, but >in honesty the gui editor of python should have what i propose, a parser >that indent automaticly at loops, functions and end. Many editors do that. Vim, which is what I use, certainly do

Re: First day beginner to python, add to counter after nested loop

2013-11-01 Thread rusi
On Friday, November 1, 2013 4:47:40 PM UTC+5:30, Alister wrote: > On Thu, 31 Oct 2013 04:07:14 -0700, rusi wrote: > > Also others (Alister?) were double-space-reply-posting as well. When > > you mean to point out a behavior without getting personal, it helps to > > point out all instances of that

Re: First day beginner to python, add to counter after nested loop

2013-11-01 Thread Alister
On Thu, 31 Oct 2013 04:07:14 -0700, rusi wrote: > > Also others (Alister?) were double-space-reply-posting as well. When > you mean to point out a behavior without getting personal, it helps to > point out all instances of that behavior. Otherwise it looks like you > are going for someone, when

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread alex23
On 31/10/2013 2:14 AM, jonas.thornv...@gmail.com wrote: Well i ain't going to change Thanks for your honesty. As I use an actual standards-compliant newsreader, I can now safely killfile you and never have to notice your laziness again. -- https://mail.python.org/mailman/listinfo/python-lis

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread alex23
On 30/10/2013 8:19 PM, jonas.thornv...@gmail.com wrote: It is quite simple i could program it in a day... There is certainly nothing stopping you from doing so. Once finished, I recommend placing it on PyPI; if it reaches a critical mass of downloads that support your thesis that "it will sav

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 7:31:14 PM UTC+5:30, Mark Lawrence wrote: > On 31/10/2013 11:40, rusi wrote: > > Please treat python as a given -- like the sun, moon and taxes." > You missed the most obvious one, trolls :) :D Only that's not an element but a set -- trolls, nuts, dicks, philosopher

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread Mark Lawrence
On 31/10/2013 11:40, rusi wrote: Please treat python as a given -- like the sun, moon and taxes." You missed the most obvious one, trolls :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 4:42:15 PM UTC+5:30, Antoon Pardon wrote: > Op 31-10-13 08:37, rusi schreef: > > 2. Antoon: I was a bit surprised at your siding with the indentation > > business. > > As an old-geezer programmer I can think of a number of reasons why, > > indentation=structure is a

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread Antoon Pardon
Op 31-10-13 08:37, rusi schreef: > On Thursday, October 31, 2013 2:37:31 AM UTC+5:30, Antoon Pardon wrote: >> Op 30-10-13 21:52, Ned Batchelder schreef: >>> On 10/30/13 3:59 PM, Antoon Pardon wrote: Op 30-10-13 20:13, Jonas schreef: > No it isn't... > The programmers of the tools on ei

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 3:41:41 PM UTC+5:30, Mark Lawrence wrote: > On 31/10/2013 07:37, rusi wrote: > > If Mark had not been rude to Jonas and explained to him at a little more > > length, maybe he would not be assholing in full-blast. > What rubbish. The OP was asked repeatedly, first by

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread Mark Lawrence
On 31/10/2013 07:37, rusi wrote: If Mark had not been rude to Jonas and explained to him at a little more length, maybe he would not be assholing in full-blast. What rubbish. The OP was asked repeatedly, first by Dave Angel and then by myself, not to post double spaced crap. He simply ref

Re: First day beginner to python, add to counter after nested loop

2013-10-31 Thread rusi
On Thursday, October 31, 2013 2:37:31 AM UTC+5:30, Antoon Pardon wrote: > Op 30-10-13 21:52, Ned Batchelder schreef: > > On 10/30/13 3:59 PM, Antoon Pardon wrote: > >> Op 30-10-13 20:13, Jonas schreef: > >>> No it isn't... > >>> The programmers of the tools on either of side will have to adapt. > >

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Dave Angel
On 30/10/2013 12:31, jonas.thornv...@gmail.com wrote: > > No that is not my problem, apparently so it is that the newsreader > constructors do not like the competition of Google groups otherwise they > would had written the five lines of codes necessary to remove the empty > linebreaks. > I li

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 21:52, Ned Batchelder schreef: > On 10/30/13 3:59 PM, Antoon Pardon wrote: >> Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef: >>> >>> No it isn't... >>> The programmers of the tools on either of side will have to adapt. >>> I wish it would be Google but it could be a database prob

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Ned Batchelder
On 10/30/13 3:59 PM, Antoon Pardon wrote: Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 20:05:07 UTC+1 skrev Mark Lawrence: On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: And ***that is not by having every stupid anal monkey sitting manual

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 20:05:07 UTC+1 skrev Mark Lawrence: On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: And ***that is not by having every stupid anal monkey sitting manually removing linebreaks by hand*** I

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:09:45 UTC+1 skrev Antoon Pardon: > Op 30-10-13 19:02, jonas.thornv...@gmail.com schreef: > > > Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > > >> On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > >> > > >>> Den onsdagen den

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:05:07 UTC+1 skrev Mark Lawrence: > On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: > > > And ***that is not by having every stupid anal monkey sitting manually > > removing linebreaks by hand*** > > > > > > Is that understood? > > > > > > > No

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 19:02, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: No that is not my problem, apparently so i

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: And ***that is not by having every stupid anal monkey sitting manually removing linebreaks by hand*** Is that understood? Nobody would have to remove line breaks by hand if you, yes you jonasthornvall at GMAIL.COM didn't use a tool that

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 16:50, Grant Edwards schreef: On 2013-10-30, Antoon Pardon wrote: Because it is a pain in the ass. Now suddenly my program doesn't work because I somehow inserted a tab instead of spaces. Then don't do that. I'm only half-kidding. Inserting incorrect tokens into program source

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 19:01:40 UTC+1 skrev Antoon Pardon: > Op 30-10-13 17:31, jonas.thornv...@gmail.com schreef: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > >> > > >> I have no need to implement a newsreader as I can quite happily send a

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 17:31, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: I have no need to implement a newsreader as I can quite happily send and receive data using Thunderbird. There are several other similar email options available.

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > > No that is not my problem, apparently so it is that the newsreader > > constructors do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > > No that is not my problem, apparently so it is that the newsreader > > constructors do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread MRAB
On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: No that is not my problem, apparently so it is that the newsreader constructors do not like the competition of Google groups otherwise they would had written the five

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rurpy
On 10/30/2013 08:22 AM, Alister wrote: > On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> Op 30-10-13 13:17, Chris Angelico schreef: >>> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon >>> wrote: >>> I broadly agree with your post (I'm of the school of thought that >>> braces are better

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
Super Kushal! Below is the result of that First the original Then emacs' cleaned up version! -Original -- On Wednesday, October 30, 2013 10:00:47 PM UTC+5:30, Kushal Kumaran wrote: > rusi writes: > > > > > On Wednesday, October 30, 2013 9:05:29 PM UT

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 16:16, rusi wrote: On Wednesday, October 30, 2013 9:27:08 PM UTC+5:30, jonas.t...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: The simplest solution is that you stop posting, as you've been spewing this double spaced crap all day and

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:57, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > >> > > >>> Den ons

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Kushal Kumaran
rusi writes: > On Wednesday, October 30, 2013 9:05:29 PM UTC+5:30, Jonas Thornval wrote: >> Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: >> > On 30/10/2013 14:31, Jonas Thornval wrote: >> > Would you please be kind enough to read, digest and action this >> > https:/

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 15:57, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: On 30/10/2013 14:31, jonas.thornv

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> > > >> > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 16:07:47 +, Alister wrote: > On Wed, 30 Oct 2013 15:56:32 +0100, Antoon Pardon wrote: > >> Op 30-10-13 15:22, Alister schreef: >>> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >>> Op 30-10-13 13:17, Chris Angelico schreef: > On Wed, Oct 30, 2013 at 11

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 9:27:08 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > > The simplest solution is that you stop posting, as you've been spewing > > this double spaced crap all day and show no inclination to do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:51:58 UTC+1 skrev Alister: > On Wed, 30 Oct 2013 08:35:29 -0700, jonas.thornvall wrote: > > > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark > > > Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> >

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 08:57:08 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark > Lawrence: >> On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: >> >> > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark >> > Lawrence: >> >> >> On 3

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 15:56:32 +0100, Antoon Pardon wrote: > Op 30-10-13 15:22, Alister schreef: >> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> >>> Op 30-10-13 13:17, Chris Angelico schreef: On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon wrote: I broadly agree with

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> > > >> > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:50:43 UTC+1 skrev Grant Edwards: > On 2013-10-30, Antoon Pardon wrote: > > > Op 30-10-13 08:07, Tim Roberts schreef: > > >> jonas.thornv...@gmail.com wrote: > > >>> > > >>> Why did Python not implement end... The end is really not necessary for > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 08:35:29 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark > Lawrence: >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: >> >> >> >> Would you please be kind enough to read, digest and action this >> >> https://wiki.pyth

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:35:29 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > > On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > Would you please be kind enough to read, digest

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 9:05:29 PM UTC+5:30, Jonas Thornval wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > On 30/10/2013 14:31, Jonas Thornval wrote: > > Would you please be kind enough to read, digest and action this > > https://wiki.python.org/moin

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Grant Edwards
On 2013-10-30, Antoon Pardon wrote: > Op 30-10-13 08:07, Tim Roberts schreef: >> jonas.thornv...@gmail.com wrote: >>> >>> Why did Python not implement end... The end is really not necessary for >>> the programming language it can be excluded, but it is a courtesy to >>> the programmer and could ea

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: Would you please be kind enough to read, digest and action this https://wiki.python.org/moin/GoogleGroupsPyth

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > > > Would you please be kind enough to read, digest and action this > > https://wiki.python.org/moin/GoogleGroupsPython > > > > TIA. > > > > -- > > Pyt

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 07:31:04 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 15:22:50 UTC+1 skrev Alister: >> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> >> >> >> > Op 30-10-13 13:17, Chris Angelico schreef: >> >> >> On Wed, Oct 30, 2013 at 11:01 PM, Anto

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: Would you please be kind enough to read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython TIA. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Ma

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 15:22, Alister schreef: > On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: > >> Op 30-10-13 13:17, Chris Angelico schreef: >>> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon >>> wrote: >>> I broadly agree with your post (I'm of the school of thought that >>> braces are better

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 15:22:50 UTC+1 skrev Alister: > On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: > > > > > Op 30-10-13 13:17, Chris Angelico schreef: > > >> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon > > >> wrote: > > >> I broadly agree with your post (I'm

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:11:17 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: > Op 30-10-13 13:17, Chris Angelico schreef: >> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon >> wrote: >> I broadly agree with your post (I'm of the school of thought that >> braces are better than indentation for delimiting blocks), but

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 03:08:11 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: >> jonas.thornv...@gmail.com wrote: >> > > I certainly do not like the old bracket style it was a catastrophe, but > in honesty the gui editor of python should ha

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Ned Batchelder
On 10/30/13 6:13 AM, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: Please stop sending us double spaced crap. -- Python is the second best programming language in the world

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 13:17, Chris Angelico schreef: > On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon > wrote: >> Because it is a pain in the ass. Now suddenly my program doesn't work >> because I somehow inserted a tab instead of spaces. > > I broadly agree with your post (I'm of the school of thought th

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Chris Angelico
On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon wrote: > Because it is a pain in the ass. Now suddenly my program doesn't work > because I somehow inserted a tab instead of spaces. I broadly agree with your post (I'm of the school of thought that braces are better than indentation for delimiting

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 3:43:03 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: * * Please stop sending us double spaced crap. * * Mark Lawrence * I am not sure what you want. And then again * You want me to remove the

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 08:07, Tim Roberts schreef: > jonas.thornv...@gmail.com wrote: >> >> Why did Python not implement end... The end is really not necessary for >> the programming language it can be excluded, but it is a courtesy to >> the programmer and could easily be transformed to indents automaticly,

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: > > > > Please stop sending us double spaced crap. > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be i

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Chris Angelico
On Wed, Oct 30, 2013 at 9:08 PM, wrote: > Well Tim ***one could argue*** why not do a (i think it is called parser) > that react to "loop", "end" and "function". And lazy like me do not have to > think about "what is not part of program". Python actually does have a symbol for what you're thin

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:11:17 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: > > > > Please stop sending us double spaced crap. > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be i

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > > >Why did Python not implement end... The end is really not necessary

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >Why did Python not implement end... The end is really not necessary for > > >the programming language it can be excluded, but it is a courtesy to > > >the programmer and could

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: Please stop sending us double spaced crap. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 10:48:36 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 09:52:16 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 09:52:16 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > > >Why did Python not implement end... The end is really not necessary

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >Why did Python not implement end... The end is really not necessary for > > >the programming language it can be excluded, but it is a courtesy to > > >the programmer and could

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Tim Roberts
jonas.thornv...@gmail.com wrote: > >Why did Python not implement end... The end is really not necessary for >the programming language it can be excluded, but it is a courtesy to >the programmer and could easily be transformed to indents automaticly, >that is removed before the compiliation/interpre

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread Dave Angel
On 29/10/2013 16:11, jonas.thornv...@gmail.com wrote: > Den tisdagen den 29:e oktober 2013 kl. 21:08:39 UTC+1 skrev > jonas.t...@gmail.com: >> Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel: > > They could had used print and prinln from basic? I do not want new line > ev

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread Gregory Ewing
Neil Cerutti wrote: Get in the habit of not using the semicolon to end lines. Also, you don't need to put parentheses around the conditions of while and if statements. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread Ned Batchelder
On 10/29/13 4:08 PM, jonas.thornv...@gmail.com wrote: Why did Python not implement end... The end is really not necessary for the programming language it can be excluded, but it is a courtesy to the programmer and could easily be transformed to indents automaticly, that is removed before the c

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread Mark Lawrence
On 29/10/2013 20:11, jonas.thornv...@gmail.com wrote: I do not want new line everytime i write out some terms. I wish you'd apply that thinking to your posts. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread Neil Cerutti
On 2013-10-29, jonas.thornv...@gmail.com wrote: > Got the script working though :D, good start. It seem though > that Python automaticly add linebreaks after printout. Is there > a way to not have print command change line? Or must i build up > a string/strings for later printout? print takes an

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
Den tisdagen den 29:e oktober 2013 kl. 21:08:39 UTC+1 skrev jonas.t...@gmail.com: > Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel: > > > On 29/10/2013 14:35, jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > (Deleting hundreds of quad-spaced garbage. Please

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel: > On 29/10/2013 14:35, jonas.thornv...@gmail.com wrote: > > > > (Deleting hundreds of quad-spaced garbage. Please be more considerate > > of others if you choose to use buggy googlegroups, maybe starting by > > studying:

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread Dave Angel
On 29/10/2013 14:35, jonas.thornv...@gmail.com wrote: (Deleting hundreds of quad-spaced garbage. Please be more considerate of others if you choose to use buggy googlegroups, maybe starting by studying: ) Please indent by 4 columns, not 1. Since indentation is how scope is specified in Python,

  1   2   >