Plz comment on this code

fridge fridge at micro.com
Sun Sep 19 04:23:15 CEST 2010


# bigdigits2.py

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100919/7d2252fd/attachment.html>


More information about the Python-list mailing list