[Tutor] (no subject)

2014-03-21 Thread Gary Engstrom
Dear Pythonists
 
Here is the code 
 
def fiba(n):
    a = 0
    b = 1
    while  a < n :
    print(a)
    c =  a + b
    a = a +c
    
 # 0,1,3,7,15,31,63
 
def fibc(n):
    a = 0
    b = 1
    while  a < n :
    print(a)
    a, b = b,a + b
    
#0,1,1,2,3,5,8,13,21,34,55,89
 
def fibb(n): a + b
    a = 0
    b = 1
    while  a < n :
    print(a)
    a = b
    b = a+b
    
#0,1,2,4,8,16,32,64
 
I am trying to understand function fibc code line a,b = b, a + b and would like 
to see it written line by line
without combining multiply assignment. If possible. I sort of follow the right 
to left evaluation of the other code.___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] new to python

2010-11-18 Thread gary engstrom
Dear Python Tutor,

Being new to python I was wondering if there is a way to import exel data
into pyrhon matrix/arrays so that I have some data to work with. I know R
uses Rcmdr as an easy interface
for excel data, which helps keep the reader engaged while learning the
language.

Thanks
G
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor