Plz comment on this code
Jason Swails
jason.swails at gmail.com
Sat Sep 18 22:52:05 EDT 2010
On Sat, Sep 18, 2010 at 10:23 PM, fridge <fridge at micro.com> wrote:
> # bigdigits2.py
>
^
Here is the comment
>
> import sys
>
> zero=["***",
> "* *",
> "***"]
> one=["***",
> " * ",
> "***"]
> digits=[zero,one,zero,one,zero,one,zero,one,zero,one]
>
> inputted_digit=sys.argv[1]
> column_max=len(inputted_digit)
> row_max=3
>
> r=0
> while r<3:
> line=""
> c=0
> while c<column_max:
> digit_i=int(inputted_digit[c])
> digit=digits[digit_i]
> line+=digit[r]
> line+=" "
> c+=1
> print(line)
> r+=1
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100918/27fcfe0c/attachment.html>
More information about the Python-list
mailing list