Skip to content
RachyJ edited this page Jul 27, 2017 · 3 revisions

To record my Python coding errors

for i in ["/","-","|","\","|"]; —> for i in [“/“,”-“,”|”,”\”,”|”]:


%r is for debugging; %s is for displaying.

for i in ['/','-','|','\','|']: print '%r\r' % i,

for i in ['/','-','|','\','|']: print ‘%s\r’ % i,


Python Error: “ValueError: need more than 1 value to unpack”

forgot to pass the variables when running ex13.py. solution: https://stackoverflow.com/questions/2814128/python-error-valueerror-need-more-than-1-value-to-unpack

Clone this wiki locally