[{"data":1,"prerenderedAt":1099},["ShallowReactive",2],{"doc-\u002Ferrors\u002Findentationerror-expected-an-indented-block-fix":3},{"id":4,"title":5,"body":6,"description":1092,"extension":1093,"meta":1094,"navigation":560,"path":1095,"seo":1096,"stem":1097,"__hash__":1098},"content\u002Ferrors\u002Findentationerror-expected-an-indented-block-fix.md","IndentationError: expected an indented block (Fix)",{"type":7,"value":8,"toc":1066},"minimark",[9,13,22,49,54,102,121,125,128,159,162,165,188,191,199,203,206,242,245,274,306,353,356,360,363,389,392,412,415,442,445,454,466,470,473,490,495,498,525,528,571,573,581,585,588,591,621,631,634,675,677,686,693,698,701,704,722,724,742,745,748,765,773,777,780,797,800,815,818,836,843,847,850,856,859,861,896,903,908,911,914,922,926,929,949,952,966,969,975,992,996,1000,1003,1007,1010,1017,1023,1027,1030,1034,1062],[10,11,5],"h1",{"id":12},"indentationerror-expected-an-indented-block-fix",[14,15,16,17,21],"p",{},"Python shows ",[18,19,20],"code",{},"IndentationError: expected an indented block"," when it reaches a line that should contain a code block, but the next line is not indented.",[14,23,24,25,28,29,28,32,28,35,28,38,28,41,44,45,48],{},"This usually happens after lines like ",[18,26,27],{},"if",", ",[18,30,31],{},"for",[18,33,34],{},"while",[18,36,37],{},"def",[18,39,40],{},"class",[18,42,43],{},"try",", or ",[18,46,47],{},"else",".",[50,51,53],"h2",{"id":52},"quick-fix","Quick fix",[55,56,61],"pre",{"className":57,"code":58,"language":59,"meta":60,"style":60},"language-python shiki shiki-themes material-theme-lighter github-light github-dark","if True:\n    print(\"This line is indented correctly\")\n","python","",[18,62,63,79],{"__ignoreMap":60},[64,65,68,71,75],"span",{"class":66,"line":67},"line",1,[64,69,27],{"class":70},"sVHd0",[64,72,74],{"class":73},"s39Yj"," True",[64,76,78],{"class":77},"sP7_E",":\n",[64,80,82,86,89,93,97,99],{"class":66,"line":81},2,[64,83,85],{"class":84},"sptTA","    print",[64,87,88],{"class":77},"(",[64,90,92],{"class":91},"sjJ54","\"",[64,94,96],{"class":95},"s_sjI","This line is indented correctly",[64,98,92],{"class":91},[64,100,101],{"class":77},")\n",[14,103,104,105,28,107,28,109,28,111,28,113,28,115,117,118,120],{},"Python expects an indented block after lines like ",[18,106,27],{},[18,108,31],{},[18,110,34],{},[18,112,37],{},[18,114,40],{},[18,116,43],{},", and ",[18,119,47],{},". Add indentation, usually 4 spaces.",[50,122,124],{"id":123},"what-this-error-means","What this error means",[14,126,127],{},"This error means:",[129,130,131,135,156],"ul",{},[132,133,134],"li",{},"Python found a line that starts a block, but no indented code came after it",[132,136,137,138,28,140,28,142,28,144,28,146,28,148,28,150,28,153,155],{},"A block is a group of lines inside ",[18,139,27],{},[18,141,31],{},[18,143,34],{},[18,145,37],{},[18,147,40],{},[18,149,43],{},[18,151,152],{},"except",[18,154,47],{},", and similar statements",[132,157,158],{},"Python uses indentation to define code structure",[14,160,161],{},"In Python, indentation is not optional. It is part of the syntax.",[14,163,164],{},"For example, after this line:",[55,166,168],{"className":57,"code":167,"language":59,"meta":60,"style":60},"if age >= 18:\n",[18,169,170],{"__ignoreMap":60},[64,171,172,174,178,182,186],{"class":66,"line":67},[64,173,27],{"class":70},[64,175,177],{"class":176},"su5hD"," age ",[64,179,181],{"class":180},"smGrS",">=",[64,183,185],{"class":184},"srdBf"," 18",[64,187,78],{"class":77},[14,189,190],{},"Python expects the next line to be indented. If it is not, Python raises this error.",[14,192,193,194,48],{},"If you are new to this, see ",[195,196,198],"a",{"href":197},"\u002Flearn\u002Fpython-indentation-rules-and-why-they-matter\u002F","Python indentation rules and why they matter",[50,200,202],{"id":201},"when-this-error-happens","When this error happens",[14,204,205],{},"This error often appears:",[129,207,208,214,217,226,239],{},[132,209,210,211,213],{},"After an ",[18,212,27],{}," statement with no indented body",[132,215,216],{},"After a function definition with no indented body",[132,218,219,220,222,223,225],{},"After loops like ",[18,221,31],{}," or ",[18,224,34],{}," with no indented code",[132,227,228,229,28,231,28,233,44,235,238],{},"After ",[18,230,43],{},[18,232,152],{},[18,234,47],{},[18,236,237],{},"finally"," with no body",[132,240,241],{},"When indentation is missing because of a copy-paste or edit mistake",[14,243,244],{},"Here are a few examples of code that can trigger it:",[55,246,248],{"className":57,"code":247,"language":59,"meta":60,"style":60},"if True:\nprint(\"Hello\")\n",[18,249,250,258],{"__ignoreMap":60},[64,251,252,254,256],{"class":66,"line":67},[64,253,27],{"class":70},[64,255,74],{"class":73},[64,257,78],{"class":77},[64,259,260,263,265,267,270,272],{"class":66,"line":81},[64,261,262],{"class":84},"print",[64,264,88],{"class":77},[64,266,92],{"class":91},[64,268,269],{"class":95},"Hello",[64,271,92],{"class":91},[64,273,101],{"class":77},[55,275,277],{"className":57,"code":276,"language":59,"meta":60,"style":60},"def greet():\nprint(\"Hi\")\n",[18,278,279,291],{"__ignoreMap":60},[64,280,281,284,288],{"class":66,"line":67},[64,282,37],{"class":283},"sbsja",[64,285,287],{"class":286},"sGLFI"," greet",[64,289,290],{"class":77},"():\n",[64,292,293,295,297,299,302,304],{"class":66,"line":81},[64,294,262],{"class":84},[64,296,88],{"class":77},[64,298,92],{"class":91},[64,300,301],{"class":95},"Hi",[64,303,92],{"class":91},[64,305,101],{"class":77},[55,307,309],{"className":57,"code":308,"language":59,"meta":60,"style":60},"for number in [1, 2, 3]:\nprint(number)\n",[18,310,311,341],{"__ignoreMap":60},[64,312,313,315,318,321,324,327,330,333,335,338],{"class":66,"line":67},[64,314,31],{"class":70},[64,316,317],{"class":176}," number ",[64,319,320],{"class":70},"in",[64,322,323],{"class":77}," [",[64,325,326],{"class":184},"1",[64,328,329],{"class":77},",",[64,331,332],{"class":184}," 2",[64,334,329],{"class":77},[64,336,337],{"class":184}," 3",[64,339,340],{"class":77},"]:\n",[64,342,343,345,347,351],{"class":66,"line":81},[64,344,262],{"class":84},[64,346,88],{"class":77},[64,348,350],{"class":349},"slqww","number",[64,352,101],{"class":77},[14,354,355],{},"In each case, the line after the colon should be indented.",[50,357,359],{"id":358},"example-that-causes-the-error","Example that causes the error",[14,361,362],{},"Here is a simple example:",[55,364,365],{"className":57,"code":247,"language":59,"meta":60,"style":60},[18,366,367,375],{"__ignoreMap":60},[64,368,369,371,373],{"class":66,"line":67},[64,370,27],{"class":70},[64,372,74],{"class":73},[64,374,78],{"class":77},[64,376,377,379,381,383,385,387],{"class":66,"line":81},[64,378,262],{"class":84},[64,380,88],{"class":77},[64,382,92],{"class":91},[64,384,269],{"class":95},[64,386,92],{"class":91},[64,388,101],{"class":77},[14,390,391],{},"The problem is the line after the colon.",[129,393,394,400,403,406],{},[132,395,396,399],{},[18,397,398],{},"if True:"," ends with a colon",[132,401,402],{},"The colon tells Python that a block is starting",[132,404,405],{},"The next line must be indented",[132,407,408,411],{},[18,409,410],{},"print(\"Hello\")"," is not indented, so Python raises an error",[14,413,414],{},"Correct version:",[55,416,418],{"className":57,"code":417,"language":59,"meta":60,"style":60},"if True:\n    print(\"Hello\")\n",[18,419,420,428],{"__ignoreMap":60},[64,421,422,424,426],{"class":66,"line":67},[64,423,27],{"class":70},[64,425,74],{"class":73},[64,427,78],{"class":77},[64,429,430,432,434,436,438,440],{"class":66,"line":81},[64,431,85],{"class":84},[64,433,88],{"class":77},[64,435,92],{"class":91},[64,437,269],{"class":95},[64,439,92],{"class":91},[64,441,101],{"class":77},[14,443,444],{},"Output:",[55,446,448],{"className":57,"code":447,"language":59,"meta":60,"style":60},"Hello\n",[18,449,450],{"__ignoreMap":60},[64,451,452],{"class":66,"line":67},[64,453,447],{"class":176},[14,455,456,457,461,462,48],{},"This same rule applies to ",[195,458,460],{"href":459},"\u002Flearn\u002Fpython-if-statements-explained\u002F","Python if statements"," and ",[195,463,465],{"href":464},"\u002Flearn\u002Fpython-functions-explained\u002F","Python functions",[50,467,469],{"id":468},"how-to-fix-it","How to fix it",[14,471,472],{},"Use these steps:",[129,474,475,478,481,487],{},[132,476,477],{},"Indent the next line with 4 spaces",[132,479,480],{},"Make sure all lines inside the block use the same indentation level",[132,482,483,484],{},"If the block is intentionally empty, use ",[18,485,486],{},"pass",[132,488,489],{},"Check the line above the error, not only the line shown in the message",[491,492,494],"h3",{"id":493},"example-fix","Example fix",[14,496,497],{},"Broken code:",[55,499,501],{"className":57,"code":500,"language":59,"meta":60,"style":60},"def greet():\nprint(\"Hello\")\n",[18,502,503,511],{"__ignoreMap":60},[64,504,505,507,509],{"class":66,"line":67},[64,506,37],{"class":283},[64,508,287],{"class":286},[64,510,290],{"class":77},[64,512,513,515,517,519,521,523],{"class":66,"line":81},[64,514,262],{"class":84},[64,516,88],{"class":77},[64,518,92],{"class":91},[64,520,269],{"class":95},[64,522,92],{"class":91},[64,524,101],{"class":77},[14,526,527],{},"Fixed code:",[55,529,531],{"className":57,"code":530,"language":59,"meta":60,"style":60},"def greet():\n    print(\"Hello\")\n\ngreet()\n",[18,532,533,541,555,562],{"__ignoreMap":60},[64,534,535,537,539],{"class":66,"line":67},[64,536,37],{"class":283},[64,538,287],{"class":286},[64,540,290],{"class":77},[64,542,543,545,547,549,551,553],{"class":66,"line":81},[64,544,85],{"class":84},[64,546,88],{"class":77},[64,548,92],{"class":91},[64,550,269],{"class":95},[64,552,92],{"class":91},[64,554,101],{"class":77},[64,556,558],{"class":66,"line":557},3,[64,559,561],{"emptyLinePlaceholder":560},true,"\n",[64,563,565,568],{"class":66,"line":564},4,[64,566,567],{"class":349},"greet",[64,569,570],{"class":77},"()\n",[14,572,444],{},[55,574,575],{"className":57,"code":447,"language":59,"meta":60,"style":60},[18,576,577],{"__ignoreMap":60},[64,578,579],{"class":66,"line":67},[64,580,447],{"class":176},[491,582,584],{"id":583},"check-the-line-above-the-error","Check the line above the error",[14,586,587],{},"Sometimes the error message points to a line that looks fine. The real issue is often the line before it.",[14,589,590],{},"Example:",[55,592,594],{"className":57,"code":593,"language":59,"meta":60,"style":60},"if True:\nname = \"Sam\"\n",[18,595,596,604],{"__ignoreMap":60},[64,597,598,600,602],{"class":66,"line":67},[64,599,27],{"class":70},[64,601,74],{"class":73},[64,603,78],{"class":77},[64,605,606,609,612,615,618],{"class":66,"line":81},[64,607,608],{"class":176},"name ",[64,610,611],{"class":180},"=",[64,613,614],{"class":91}," \"",[64,616,617],{"class":95},"Sam",[64,619,620],{"class":91},"\"\n",[14,622,623,624,627,628,630],{},"Python complains because ",[18,625,626],{},"name = \"Sam\""," should be inside the ",[18,629,27],{}," block.",[14,632,633],{},"Fixed version:",[55,635,637],{"className":57,"code":636,"language":59,"meta":60,"style":60},"if True:\n    name = \"Sam\"\n\nprint(name)\n",[18,638,639,647,660,664],{"__ignoreMap":60},[64,640,641,643,645],{"class":66,"line":67},[64,642,27],{"class":70},[64,644,74],{"class":73},[64,646,78],{"class":77},[64,648,649,652,654,656,658],{"class":66,"line":81},[64,650,651],{"class":176},"    name ",[64,653,611],{"class":180},[64,655,614],{"class":91},[64,657,617],{"class":95},[64,659,620],{"class":91},[64,661,662],{"class":66,"line":557},[64,663,561],{"emptyLinePlaceholder":560},[64,665,666,668,670,673],{"class":66,"line":564},[64,667,262],{"class":84},[64,669,88],{"class":77},[64,671,672],{"class":349},"name",[64,674,101],{"class":77},[14,676,444],{},[55,678,680],{"className":57,"code":679,"language":59,"meta":60,"style":60},"Sam\n",[18,681,682],{"__ignoreMap":60},[64,683,684],{"class":66,"line":67},[64,685,679],{"class":176},[50,687,689,690,692],{"id":688},"use-pass-for-an-empty-block","Use ",[18,691,486],{}," for an empty block",[14,694,695,697],{},[18,696,486],{}," is a placeholder that does nothing.",[14,699,700],{},"It is useful when you want to write the structure first and add code later.",[14,702,703],{},"Common places to use it:",[129,705,706,710,714,719],{},[132,707,228,708],{},[18,709,37],{},[132,711,228,712],{},[18,713,40],{},[132,715,716,717],{},"Inside ",[18,718,27],{},[132,720,721],{},"Inside loops during early drafting",[14,723,590],{},[55,725,727],{"className":57,"code":726,"language":59,"meta":60,"style":60},"def greet():\n    pass\n",[18,728,729,737],{"__ignoreMap":60},[64,730,731,733,735],{"class":66,"line":67},[64,732,37],{"class":283},[64,734,287],{"class":286},[64,736,290],{"class":77},[64,738,739],{"class":66,"line":81},[64,740,741],{"class":70},"    pass\n",[14,743,744],{},"This code is valid, even though the function does nothing yet.",[14,746,747],{},"Another example:",[55,749,751],{"className":57,"code":750,"language":59,"meta":60,"style":60},"if True:\n    pass\n",[18,752,753,761],{"__ignoreMap":60},[64,754,755,757,759],{"class":66,"line":67},[64,756,27],{"class":70},[64,758,74],{"class":73},[64,760,78],{"class":77},[64,762,763],{"class":66,"line":81},[64,764,741],{"class":70},[14,766,767,768,770,771,48],{},"Without ",[18,769,486],{},", Python would raise ",[18,772,20],{},[50,774,776],{"id":775},"debugging-checklist","Debugging checklist",[14,778,779],{},"When you see this error, check these things:",[129,781,782,785,788,791,794],{},[132,783,784],{},"Find the line that ends with a colon",[132,786,787],{},"Check whether the next line is indented",[132,789,790],{},"Use spaces consistently instead of mixing tabs and spaces",[132,792,793],{},"Make sure your editor did not remove indentation automatically",[132,795,796],{},"Run the file again after fixing one block at a time",[14,798,799],{},"You can also test your file from the command line:",[55,801,805],{"className":802,"code":803,"language":804,"meta":60,"style":60},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","python your_file.py\n","bash",[18,806,807],{"__ignoreMap":60},[64,808,809,812],{"class":66,"line":67},[64,810,59],{"class":811},"sbgvK",[64,813,814],{"class":95}," your_file.py\n",[14,816,817],{},"Or check for syntax and indentation problems without running the program:",[55,819,821],{"className":802,"code":820,"language":804,"meta":60,"style":60},"python -m py_compile your_file.py\n",[18,822,823],{"__ignoreMap":60},[64,824,825,827,831,834],{"class":66,"line":67},[64,826,59],{"class":811},[64,828,830],{"class":829},"stzsN"," -m",[64,832,833],{"class":95}," py_compile",[64,835,814],{"class":95},[14,837,838,839,48],{},"If the problem is not missing indentation but inconsistent indentation, you may be dealing with ",[195,840,842],{"href":841},"\u002Ferrors\u002Findentationerror-unindent-does-not-match-any-outer-indentation-level-fix","IndentationError: unindent does not match any outer indentation level",[50,844,846],{"id":845},"related-indentation-problems","Related indentation problems",[14,848,849],{},"This error is not the same as other indentation errors.",[491,851,853],{"id":852},"indentationerror-unexpected-indent",[18,854,855],{},"IndentationError: unexpected indent",[14,857,858],{},"This happens when a line is indented even though Python was not expecting a block there.",[14,860,590],{},[55,862,864],{"className":57,"code":863,"language":59,"meta":60,"style":60},"print(\"Start\")\n    print(\"Too much indentation\")\n",[18,865,866,881],{"__ignoreMap":60},[64,867,868,870,872,874,877,879],{"class":66,"line":67},[64,869,262],{"class":84},[64,871,88],{"class":77},[64,873,92],{"class":91},[64,875,876],{"class":95},"Start",[64,878,92],{"class":91},[64,880,101],{"class":77},[64,882,883,885,887,889,892,894],{"class":66,"line":81},[64,884,85],{"class":84},[64,886,88],{"class":77},[64,888,92],{"class":91},[64,890,891],{"class":95},"Too much indentation",[64,893,92],{"class":91},[64,895,101],{"class":77},[14,897,898,899,902],{},"See ",[195,900,855],{"href":901},"\u002Ferrors\u002Findentationerror-unexpected-indent-fix"," for that case.",[491,904,906],{"id":905},"indentationerror-unindent-does-not-match-any-outer-indentation-level",[18,907,842],{},[14,909,910],{},"This happens when indentation levels do not line up correctly, often because tabs and spaces were mixed.",[14,912,913],{},"All of these errors usually come from block structure or inconsistent whitespace.",[14,915,916,917,921],{},"Also check for ",[195,918,920],{"href":919},"\u002Ferrors\u002Fsyntaxerror-missing-colon-fix","SyntaxError: missing colon",", because forgetting a colon can lead to confusion around block structure.",[50,923,925],{"id":924},"common-causes","Common causes",[14,927,928],{},"The most common causes are:",[129,930,931,934,940,943,946],{},[132,932,933],{},"Forgetting to indent after a colon",[132,935,936,937,939],{},"Leaving a function or ",[18,938,27],{}," block empty",[132,941,942],{},"Deleting the only line inside a block",[132,944,945],{},"Mixing tabs and spaces",[132,947,948],{},"Bad paste formatting from another editor or website",[14,950,951],{},"A common beginner mistake is writing the structure first:",[55,953,955],{"className":57,"code":954,"language":59,"meta":60,"style":60},"def calculate_total():\n",[18,956,957],{"__ignoreMap":60},[64,958,959,961,964],{"class":66,"line":67},[64,960,37],{"class":283},[64,962,963],{"class":286}," calculate_total",[64,965,290],{"class":77},[14,967,968],{},"This is incomplete. Python expects an indented block after the function line.",[14,970,971,972,974],{},"To make it valid for now, add ",[18,973,486],{},":",[55,976,978],{"className":57,"code":977,"language":59,"meta":60,"style":60},"def calculate_total():\n    pass\n",[18,979,980,988],{"__ignoreMap":60},[64,981,982,984,986],{"class":66,"line":67},[64,983,37],{"class":283},[64,985,963],{"class":286},[64,987,290],{"class":77},[64,989,990],{"class":66,"line":81},[64,991,741],{"class":70},[50,993,995],{"id":994},"faq","FAQ",[491,997,999],{"id":998},"what-does-expected-an-indented-block-mean-in-python","What does \"expected an indented block\" mean in Python?",[14,1001,1002],{},"It means Python expected code inside a block, but the next line was not indented.",[491,1004,1006],{"id":1005},"how-many-spaces-should-i-use-for-indentation-in-python","How many spaces should I use for indentation in Python?",[14,1008,1009],{},"Use 4 spaces per indentation level. This is the standard Python style.",[491,1011,1013,1014,1016],{"id":1012},"can-i-leave-an-if-statement-or-function-empty","Can I leave an ",[18,1015,27],{}," statement or function empty?",[14,1018,1019,1020,1022],{},"Yes, but you must use ",[18,1021,486],{}," as a placeholder inside the block.",[491,1024,1026],{"id":1025},"why-does-the-error-point-to-a-line-that-looks-correct","Why does the error point to a line that looks correct?",[14,1028,1029],{},"The real problem is often the line above it, especially one that ends with a colon.",[50,1031,1033],{"id":1032},"see-also","See also",[129,1035,1036,1040,1044,1048,1052,1057],{},[132,1037,1038],{},[195,1039,198],{"href":197},[132,1041,1042],{},[195,1043,855],{"href":901},[132,1045,1046],{},[195,1047,842],{"href":841},[132,1049,1050],{},[195,1051,920],{"href":919},[132,1053,1054],{},[195,1055,1056],{"href":459},"Python if statements explained",[132,1058,1059],{},[195,1060,1061],{"href":464},"Python functions explained",[1063,1064,1065],"style",{},"html pre.shiki code .sVHd0, html code.shiki .sVHd0{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit}html pre.shiki code .s39Yj, html code.shiki .s39Yj{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sptTA, html code.shiki .sptTA{--shiki-light:#6182B8;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sGLFI, html code.shiki .sGLFI{--shiki-light:#6182B8;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .slqww, html code.shiki .slqww{--shiki-light:#6182B8;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":60,"searchDepth":81,"depth":81,"links":1067},[1068,1069,1070,1071,1072,1076,1078,1079,1083,1084,1091],{"id":52,"depth":81,"text":53},{"id":123,"depth":81,"text":124},{"id":201,"depth":81,"text":202},{"id":358,"depth":81,"text":359},{"id":468,"depth":81,"text":469,"children":1073},[1074,1075],{"id":493,"depth":557,"text":494},{"id":583,"depth":557,"text":584},{"id":688,"depth":81,"text":1077},"Use pass for an empty block",{"id":775,"depth":81,"text":776},{"id":845,"depth":81,"text":846,"children":1080},[1081,1082],{"id":852,"depth":557,"text":855},{"id":905,"depth":557,"text":842},{"id":924,"depth":81,"text":925},{"id":994,"depth":81,"text":995,"children":1085},[1086,1087,1088,1090],{"id":998,"depth":557,"text":999},{"id":1005,"depth":557,"text":1006},{"id":1012,"depth":557,"text":1089},"Can I leave an if statement or function empty?",{"id":1025,"depth":557,"text":1026},{"id":1032,"depth":81,"text":1033},"Master indentationerror expected an indented block fix in our comprehensive Python beginner guide.","md",{},"\u002Ferrors\u002Findentationerror-expected-an-indented-block-fix",{"title":5,"description":1092},"errors\u002Findentationerror-expected-an-indented-block-fix","ewu4j7SwWDdhzJ30pTEQiCnptuLDXPeLhE87GP7-gwA",1777585498436]