open-discussion > RE: MRIcroGL Visualization demos
Jan 11, 2021  06:01 AM | warrenfelsh
RE: MRIcroGL Visualization demos
Most programming languages permit indentation, but don't enforce it. Python enforces it with an iron fist, it has caused confusion for many beginners. The error expected an indented block is probably caused by a mix of tabs and spaces and this can lead to some confusing errors. Putting in an extra space or leaving one out where it is needed will surely generate an error message . Some common causes of this error include:
  • Forgetting to indent the statements within a compound statement
  • Forgetting to indent the statements of a user-defined function.

The indentation can be any consistent white space . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Most editors have an option for automatically converting tabs to spaces. If your editor has this option, turn it on.

Threaded View

TitleAuthorDate
Mikolaj Pawlak Oct 6, 2019
Andrew Sun Feb 29, 2020
RE: MRIcroGL Visualization demos
warrenfelsh Jan 11, 2021
Chris Rorden Mar 5, 2020
Andrew Sun Mar 6, 2020
Chris Rorden Mar 6, 2020
Andrew Sun Mar 6, 2020
Chris Rorden Mar 6, 2020
Andrew Sun Mar 10, 2020
Chris Rorden Mar 10, 2020
Chris Rorden Oct 7, 2019
Mikolaj Pawlak Oct 7, 2019