VPSMATE

  • HOME
  • NEWS
  • VPS
  • DEDICATED
  • ARCHIVES
  • GoDaddy
  • SCRIPT
  • TOOLS
    • Traceroute
    • Benchmark
    • Useful Sites
  • Themes
  • GFW
VPSMATE
VPS COUPON & PROMOS | VPS & DEDICATED SERVERS OFFERS | VPS REVIEWS
  1. Main page
  2. QuickFix
  3. Main content

Python - IndentationError: unexpected indent

07/07/2017 3781hotness 0likes 0comments

The error "IndentationError: unexpected indent" in Python people get most time is something to do with space and tab syntax in editor. Editor needs to be set using space instead of tab in python programming.
Eg. Convert tabs to spaces in Notepad++

To convert existing tabs to spaces, press Edit->Blank Operations->TAB to Space.

If in the future you want to enter spaces instead of tab when you press tab key:

Go to Settings->Preferences...->Language (since version 7.1) or Settings->Preferences...->Tab Settings (previous versions)
Check Replace by space
(Optional) You can set the number of spaces to use in place of a Tab by changing the Tab size field.

Related

Tag: Error Python syntax
Last updated:07/07/2017

kyaky

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

Comments

Cancel

This site uses Akismet to reduce spam. Learn how your comment data is processed.

COPYRIGHT © 2021 vpsmate.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang