Python: unexpected indent


ran script both on latest version of python , on python 2.7.6. reason, there's indent @ print(data) saw now. use textwrangler - got tips see , fix problems this?
code:
  #!/usr/bin/pythonw  loop = 0  data = {}  while loop == 0:  	theinput = input("please type in either data or command.")  	if isinstance(theinput,int):  	    bininput = bin(theinput)  	    data.add(theinput)  		print(data)  
 

the code under while has 8 spaces instead of 4.

edit: also, last line indented no reason.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

ATI fireGL X3 NOS on ebay

Apple Opening New Retail Stores in Florida and New Hampshire This Week

New 2014 Mac Mini as living room media unit... general questions :)