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

Snow Angels: Men Dig Out Moose Buried By Avalanche

Error installing Key Agent drivers in Windows 7

IOH Heatsink & CPU B Core 0 Relative to ProcHot