Re: [Tutor] Top Programming Languages of 2013

2007-10-07 Thread James Matthews
What are these stats based on?

On 10/7/07, Alan Gauld [EMAIL PROTECTED] wrote:


 Dick Moores [EMAIL PROTECTED] wrote

  http://www.redcanary.ca/view/top-programming
 

 Interesting, but I'm not sure what the criteria for top is.
 Is it a measure of power, popularity, usage?

 Scary that HTML/CSS should be so high though
 given its not a programming language at all!

 Alan G.

 --
 http://mail.python.org/mailman/listinfo/python-list




-- 
http://www.goldwatches.com/mens/cufflinks.html
http://www.jewelerslounge.com
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] words and lengths

2007-05-17 Thread James Matthews
Please include some code?

http://www.goldwatches.com/watches.asp?Brand=39
- Original Message - 
From: Rikard Bosnjakovic [EMAIL PROTECTED]
To: Emad Nawfal [EMAIL PROTECTED]
Cc: Tutor@python.org
Sent: Thursday, May 17, 2007 3:57 AM
Subject: Re: [Tutor] words and lengths


 On 5/16/07, Emad Nawfal [EMAIL PROTECTED] wrote:
 
 What's wrong with it, and how can I fix it?
 
 Alas, we are not mind readers. Instead of letting others guess, it's
 usually a better idea to write any syntax errors - or whatever -
 Python complains, or what the result you expect it to be, and what
 result it actually turns out to.
 
 Then we can help you fix it.
 
 This particular five lines code was no problem, but for code longer
 than that it's usually a pain in the backside having to guess
 everything and still end up with a poster who's not satisfied with the
 result based on plain guessing and no fact.
 
 
 -- 
 - Rikard - http://bos.hack.org/cv/
 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I want some help with arrays...

2007-05-17 Thread James Matthews
Also computer start counting from 0 you can change this when you learn the 
language more but it isn't recommended!

http://www.goldwatches.com/watches.asp?Brand=39
- Original Message - 
From: Luke Paireepinart [EMAIL PROTECTED]
To: Alan Gilfoy [EMAIL PROTECTED]
Cc: tutor@python.org
Sent: Thursday, May 17, 2007 9:46 PM
Subject: Re: [Tutor] I want some help with arrays...


 Alan Gilfoy wrote:
 Why Python starts counting at [0] instead of at [1] is a whole other 
 issue. :D

 array = [[0.0, 0.1], [1.0, 1.1]]

 array[0[1]] seems right, although it isn't, because the index (0) and
 the subindex(1) are nested in 'array[0[1]]' much like the list and
 sublist that I'm calling from with the indexes.

 array[0][1] works instead? Gotcha.

 Think of this command as being interpreted from left to right.
 command:   array[0[1]]

 array[ ... now what do we index?

 0[1] - this doesn't work, it raises an error.

 Whereas this:

 command:  array[0][1]

 array[ ... what do we index?
 0 ] - we index the first item.

 so now we have this:

 command:  [0.0,0.1][1]

 [0.0,0.1] [ ... what do we index?

 1 ] - we index the 2nd item.

 so now we have this:

 0.1
 there are no more commands, so we stop here.

 Hope that made sense,
 -Luke
 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor 

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I want some help with arrays...

2007-05-17 Thread James Matthews
When the CPU writes to the RAM the 0th location can be written to also. When 
you alter components of a language for example changing the way an list is 
indexed you have to be careful because you can accidently jump out of 
bounds!

http://www.goldwatches.com/watches.asp?Brand=39
- Original Message - 
From: Bob Gailer [EMAIL PROTECTED]
To: James Matthews [EMAIL PROTECTED]
Cc: tutor@python.org
Sent: Friday, May 18, 2007 12:03 AM
Subject: Re: [Tutor] I want some help with arrays...


 James Matthews wrote:
 Also computer start counting from 0
 No no. Computers don't count. Programs count. And they start whereever you 
 program them to start.
 Recall that humans count from 1 because of some historic evolution. The 
 introduction of zero into human arithmetic came many centuries after 
 counting. And met with much initial resistance.
 The origin for array indexes is also varied in its evolution. FORTRAN 
 arrays are indexed starting at 1. In some languages you can specify the 
 range of indexes as in  dimension a (1900:2030) if you want to use the 
 year as an index and don't care about years outside the range 1900..2030.
 you can change this when you learn the language more but it isn't 
 recommended!

 Oh? who disrecommends it?

 -- 
 Bob Gailer
 510-978-4454
 

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor