[Tutor] Beginner - list not returning correct variable value

Marc Eymard marc_eymard at hotmail.com
Thu Mar 13 17:12:28 CET 2014


Hello Tutor,

I am a self-taught Python script beginner and I do it from the Michael Dawson Book.

In attached script, can somebody tell me why the values of the variables strenght_points, health_points, wisdom_points and dexterity_points stay at 0 value when 'printing' their value from the list attributes[] when the 'for' loop at the bottom of the script runs.

I have commented out the script to highlight what causes me problem.

I hope this is clear enough a question.

Thanks for your help,
Marc
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140313/8ca6d0d0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Nested_tuple.py
Type: text/x-script.phyton
Size: 2689 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20140313/8ca6d0d0/attachment.bin>


More information about the Tutor mailing list