[Tutor] still confused about for loops
Brandon Merritt
merrittb7 at gmail.com
Wed Dec 19 07:19:31 CET 2012
Sorry, I am just so confused and aggravated as to why this won't work - why
doesn't it print out the whole list? :
number = raw_input('Enter a 7-unit number: ')
for i in number:
count = []
count.append(i)
print count
>>> Enter a 7-unit number: 78953298
['8']
--
*Brandon Merritt**
(707) 481-1744*
*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121218/570995e8/attachment.html>
More information about the Tutor
mailing list