[{"data":1,"prerenderedAt":1176},["ShallowReactive",2],{"doc-\u002Ferrors\u002Fsyntaxerror-invalid-syntax-fix":3},{"id":4,"title":5,"body":6,"description":1169,"extension":1170,"meta":1171,"navigation":71,"path":1172,"seo":1173,"stem":1174,"__hash__":1175},"content\u002Ferrors\u002Fsyntaxerror-invalid-syntax-fix.md","SyntaxError: invalid syntax (Fix)",{"type":7,"value":8,"toc":1143},"minimark",[9,13,21,24,37,42,224,230,234,240,256,264,268,271,309,312,345,352,356,362,367,413,419,423,466,470,473,488,495,499,502,547,550,554,585,589,618,622,659,663,666,741,744,813,817,820,841,844,859,862,880,887,891,897,933,936,988,995,998,1042,1046,1049,1079,1083,1087,1090,1094,1101,1105,1108,1112,1115,1119,1139],[10,11,5],"h1",{"id":12},"syntaxerror-invalid-syntax-fix",[14,15,16,20],"p",{},[17,18,19],"code",{},"SyntaxError: invalid syntax"," means Python could not understand part of your code.",[14,22,23],{},"This is one of the most common beginner errors. It usually happens because something is missing, extra, or written in the wrong form.",[14,25,26,27,31,32,36],{},"The tricky part is this: Python often points to the place where it ",[28,29,30],"em",{},"noticed"," the problem, not the place where the mistake actually started. That is why you should always check the highlighted line ",[33,34,35],"strong",{},"and the line just before it",".",[38,39,41],"h2",{"id":40},"quick-fix","Quick fix",[43,44,49],"pre",{"className":45,"code":46,"language":47,"meta":48,"style":48},"language-python shiki shiki-themes material-theme-lighter github-light github-dark","# Check the line Python points to and the line just before it\n# Common fixes:\n\n# 1. Add a missing colon\nif x > 5:\n    print(x)\n\n# 2. Close missing quotes or brackets\nname = \"Alice\"\nitems = [1, 2, 3]\n\n# 3. Fix misspelled keywords\nfor i in range(3):\n    print(i)\n","python","",[17,50,51,60,66,73,79,102,119,124,130,150,178,183,189,212],{"__ignoreMap":48},[52,53,56],"span",{"class":54,"line":55},"line",1,[52,57,59],{"class":58},"sutJx","# Check the line Python points to and the line just before it\n",[52,61,63],{"class":54,"line":62},2,[52,64,65],{"class":58},"# Common fixes:\n",[52,67,69],{"class":54,"line":68},3,[52,70,72],{"emptyLinePlaceholder":71},true,"\n",[52,74,76],{"class":54,"line":75},4,[52,77,78],{"class":58},"# 1. Add a missing colon\n",[52,80,82,86,90,94,98],{"class":54,"line":81},5,[52,83,85],{"class":84},"sVHd0","if",[52,87,89],{"class":88},"su5hD"," x ",[52,91,93],{"class":92},"smGrS",">",[52,95,97],{"class":96},"srdBf"," 5",[52,99,101],{"class":100},"sP7_E",":\n",[52,103,105,109,112,116],{"class":54,"line":104},6,[52,106,108],{"class":107},"sptTA","    print",[52,110,111],{"class":100},"(",[52,113,115],{"class":114},"slqww","x",[52,117,118],{"class":100},")\n",[52,120,122],{"class":54,"line":121},7,[52,123,72],{"emptyLinePlaceholder":71},[52,125,127],{"class":54,"line":126},8,[52,128,129],{"class":58},"# 2. Close missing quotes or brackets\n",[52,131,133,136,139,143,147],{"class":54,"line":132},9,[52,134,135],{"class":88},"name ",[52,137,138],{"class":92},"=",[52,140,142],{"class":141},"sjJ54"," \"",[52,144,146],{"class":145},"s_sjI","Alice",[52,148,149],{"class":141},"\"\n",[52,151,153,156,158,161,164,167,170,172,175],{"class":54,"line":152},10,[52,154,155],{"class":88},"items ",[52,157,138],{"class":92},[52,159,160],{"class":100}," [",[52,162,163],{"class":96},"1",[52,165,166],{"class":100},",",[52,168,169],{"class":96}," 2",[52,171,166],{"class":100},[52,173,174],{"class":96}," 3",[52,176,177],{"class":100},"]\n",[52,179,181],{"class":54,"line":180},11,[52,182,72],{"emptyLinePlaceholder":71},[52,184,186],{"class":54,"line":185},12,[52,187,188],{"class":58},"# 3. Fix misspelled keywords\n",[52,190,192,195,198,201,204,206,209],{"class":54,"line":191},13,[52,193,194],{"class":84},"for",[52,196,197],{"class":88}," i ",[52,199,200],{"class":84},"in",[52,202,203],{"class":107}," range",[52,205,111],{"class":100},[52,207,208],{"class":96},"3",[52,210,211],{"class":100},"):\n",[52,213,215,217,219,222],{"class":54,"line":214},14,[52,216,108],{"class":107},[52,218,111],{"class":100},[52,220,221],{"class":114},"i",[52,223,118],{"class":100},[225,226,227],"blockquote",{},[14,228,229],{},"Python often shows the error where it noticed the problem, not where the mistake started. Always inspect the previous line too.",[38,231,233],{"id":232},"what-this-error-means","What this error means",[14,235,236,237,239],{},"When you see ",[17,238,19],{},", Python is telling you:",[241,242,243,247,250,253],"ul",{},[244,245,246],"li",{},"It could not understand part of your code.",[244,248,249],{},"The code breaks Python's grammar rules.",[244,251,252],{},"The program stops before it fully runs.",[244,254,255],{},"The message is broad, so you need to inspect nearby lines carefully.",[14,257,258,259,36],{},"If you are new to Python, it helps to review ",[260,261,263],"a",{"href":262},"\u002Flearn\u002Fpython-syntax-basics-explained","Python syntax basics",[38,265,267],{"id":266},"why-it-happens","Why it happens",[14,269,270],{},"Common causes include:",[241,272,273,294,297,300,303,306],{},[244,274,275,276,278,279,278,281,278,284,278,287,290,291],{},"A colon is missing after ",[17,277,85],{},", ",[17,280,194],{},[17,282,283],{},"while",[17,285,286],{},"def",[17,288,289],{},"class",", or ",[17,292,293],{},"try",[244,295,296],{},"A quote, parenthesis, bracket, or brace is not closed",[244,298,299],{},"A keyword is misspelled",[244,301,302],{},"Operators are used incorrectly",[244,304,305],{},"Two statements are combined in an invalid way",[244,307,308],{},"Indentation changes lead to related syntax problems",[14,310,311],{},"Very common examples are:",[241,313,314,320,326,332,342],{},[244,315,316,317,319],{},"Missing colon after an ",[17,318,85],{}," statement",[244,321,322,323],{},"Unclosed string like ",[17,324,325],{},"\"hello",[244,327,328,329],{},"Unclosed list like ",[17,330,331],{},"[1, 2, 3",[244,333,334,335,338,339],{},"Writing ",[17,336,337],{},"else if"," instead of ",[17,340,341],{},"elif",[244,343,344],{},"Adding an extra symbol that does not belong",[14,346,347,348,36],{},"If the problem turns out to be spacing and code blocks, see ",[260,349,351],{"href":350},"\u002Flearn\u002Fpython-indentation-rules-and-why-they-matter","Python indentation rules",[38,353,355],{"id":354},"example-that-causes-the-error","Example that causes the error",[14,357,358,359,361],{},"A missing colon after an ",[17,360,85],{}," statement is a classic cause.",[363,364,366],"h3",{"id":365},"code-with-the-error","Code with the error",[43,368,370],{"className":45,"code":369,"language":47,"meta":48,"style":48},"x = 10\n\nif x > 5\n    print(\"x is greater than 5\")\n",[17,371,372,382,386,397],{"__ignoreMap":48},[52,373,374,377,379],{"class":54,"line":55},[52,375,376],{"class":88},"x ",[52,378,138],{"class":92},[52,380,381],{"class":96}," 10\n",[52,383,384],{"class":54,"line":62},[52,385,72],{"emptyLinePlaceholder":71},[52,387,388,390,392,394],{"class":54,"line":68},[52,389,85],{"class":84},[52,391,89],{"class":88},[52,393,93],{"class":92},[52,395,396],{"class":96}," 5\n",[52,398,399,401,403,406,409,411],{"class":54,"line":75},[52,400,108],{"class":107},[52,402,111],{"class":100},[52,404,405],{"class":141},"\"",[52,407,408],{"class":145},"x is greater than 5",[52,410,405],{"class":141},[52,412,118],{"class":100},[14,414,415,416,418],{},"Python will raise a syntax error because the ",[17,417,85],{}," line should end with a colon.",[363,420,422],{"id":421},"correct-version","Correct version",[43,424,426],{"className":45,"code":425,"language":47,"meta":48,"style":48},"x = 10\n\nif x > 5:\n    print(\"x is greater than 5\")\n",[17,427,428,436,440,452],{"__ignoreMap":48},[52,429,430,432,434],{"class":54,"line":55},[52,431,376],{"class":88},[52,433,138],{"class":92},[52,435,381],{"class":96},[52,437,438],{"class":54,"line":62},[52,439,72],{"emptyLinePlaceholder":71},[52,441,442,444,446,448,450],{"class":54,"line":68},[52,443,85],{"class":84},[52,445,89],{"class":88},[52,447,93],{"class":92},[52,449,97],{"class":96},[52,451,101],{"class":100},[52,453,454,456,458,460,462,464],{"class":54,"line":75},[52,455,108],{"class":107},[52,457,111],{"class":100},[52,459,405],{"class":141},[52,461,408],{"class":145},[52,463,405],{"class":141},[52,465,118],{"class":100},[363,467,469],{"id":468},"why-this-works","Why this works",[14,471,472],{},"The colon tells Python that a block of code will follow.",[14,474,475,476,278,478,278,480,278,482,484,485,487],{},"Statements like ",[17,477,85],{},[17,479,194],{},[17,481,283],{},[17,483,286],{},", and ",[17,486,289],{}," need a colon at the end.",[14,489,490,491,36],{},"If this is your exact problem, read ",[260,492,494],{"href":493},"\u002Ferrors\u002Fsyntaxerror-missing-colon-fix","SyntaxError: missing colon",[38,496,498],{"id":497},"common-fixes","Common fixes",[14,500,501],{},"Try these fixes near the highlighted line:",[241,503,504,525,528,538,541,544],{},[244,505,506,507,278,509,278,511,278,513,278,515,278,517,278,519,484,522],{},"Add missing colons after block starters like ",[17,508,85],{},[17,510,194],{},[17,512,283],{},[17,514,286],{},[17,516,289],{},[17,518,293],{},[17,520,521],{},"except",[17,523,524],{},"else",[244,526,527],{},"Close all quotes and brackets",[244,529,530,531,278,533,484,535],{},"Check for misspelled Python keywords like ",[17,532,341],{},[17,534,283],{},[17,536,537],{},"return",[244,539,540],{},"Separate statements properly",[244,542,543],{},"Remove extra symbols that do not belong",[244,545,546],{},"Look at the line above the one Python highlights",[14,548,549],{},"Here are a few short examples.",[363,551,553],{"id":552},"_1-add-a-missing-colon","1. Add a missing colon",[43,555,557],{"className":45,"code":556,"language":47,"meta":48,"style":48},"for i in range(3):\n    print(i)\n",[17,558,559,575],{"__ignoreMap":48},[52,560,561,563,565,567,569,571,573],{"class":54,"line":55},[52,562,194],{"class":84},[52,564,197],{"class":88},[52,566,200],{"class":84},[52,568,203],{"class":107},[52,570,111],{"class":100},[52,572,208],{"class":96},[52,574,211],{"class":100},[52,576,577,579,581,583],{"class":54,"line":62},[52,578,108],{"class":107},[52,580,111],{"class":100},[52,582,221],{"class":114},[52,584,118],{"class":100},[363,586,588],{"id":587},"_2-close-a-string-properly","2. Close a string properly",[43,590,592],{"className":45,"code":591,"language":47,"meta":48,"style":48},"name = \"Alice\"\nprint(name)\n",[17,593,594,606],{"__ignoreMap":48},[52,595,596,598,600,602,604],{"class":54,"line":55},[52,597,135],{"class":88},[52,599,138],{"class":92},[52,601,142],{"class":141},[52,603,146],{"class":145},[52,605,149],{"class":141},[52,607,608,611,613,616],{"class":54,"line":62},[52,609,610],{"class":107},"print",[52,612,111],{"class":100},[52,614,615],{"class":114},"name",[52,617,118],{"class":100},[363,619,621],{"id":620},"_3-close-brackets-properly","3. Close brackets properly",[43,623,625],{"className":45,"code":624,"language":47,"meta":48,"style":48},"numbers = [1, 2, 3]\nprint(numbers)\n",[17,626,627,648],{"__ignoreMap":48},[52,628,629,632,634,636,638,640,642,644,646],{"class":54,"line":55},[52,630,631],{"class":88},"numbers ",[52,633,138],{"class":92},[52,635,160],{"class":100},[52,637,163],{"class":96},[52,639,166],{"class":100},[52,641,169],{"class":96},[52,643,166],{"class":100},[52,645,174],{"class":96},[52,647,177],{"class":100},[52,649,650,652,654,657],{"class":54,"line":62},[52,651,610],{"class":107},[52,653,111],{"class":100},[52,655,656],{"class":114},"numbers",[52,658,118],{"class":100},[363,660,662],{"id":661},"_4-fix-a-misspelled-keyword","4. Fix a misspelled keyword",[14,664,665],{},"Wrong:",[43,667,669],{"className":45,"code":668,"language":47,"meta":48,"style":48},"x = 5\n\nif x > 10:\n    print(\"big\")\nelse if x > 3:\n    print(\"medium\")\n",[17,670,671,679,683,696,711,726],{"__ignoreMap":48},[52,672,673,675,677],{"class":54,"line":55},[52,674,376],{"class":88},[52,676,138],{"class":92},[52,678,396],{"class":96},[52,680,681],{"class":54,"line":62},[52,682,72],{"emptyLinePlaceholder":71},[52,684,685,687,689,691,694],{"class":54,"line":68},[52,686,85],{"class":84},[52,688,89],{"class":88},[52,690,93],{"class":92},[52,692,693],{"class":96}," 10",[52,695,101],{"class":100},[52,697,698,700,702,704,707,709],{"class":54,"line":75},[52,699,108],{"class":107},[52,701,111],{"class":100},[52,703,405],{"class":141},[52,705,706],{"class":145},"big",[52,708,405],{"class":141},[52,710,118],{"class":100},[52,712,713,715,718,720,722,724],{"class":54,"line":81},[52,714,524],{"class":84},[52,716,717],{"class":84}," if",[52,719,89],{"class":88},[52,721,93],{"class":92},[52,723,174],{"class":96},[52,725,101],{"class":100},[52,727,728,730,732,734,737,739],{"class":54,"line":104},[52,729,108],{"class":107},[52,731,111],{"class":100},[52,733,405],{"class":141},[52,735,736],{"class":145},"medium",[52,738,405],{"class":141},[52,740,118],{"class":100},[14,742,743],{},"Correct:",[43,745,747],{"className":45,"code":746,"language":47,"meta":48,"style":48},"x = 5\n\nif x > 10:\n    print(\"big\")\nelif x > 3:\n    print(\"medium\")\n",[17,748,749,757,761,773,787,799],{"__ignoreMap":48},[52,750,751,753,755],{"class":54,"line":55},[52,752,376],{"class":88},[52,754,138],{"class":92},[52,756,396],{"class":96},[52,758,759],{"class":54,"line":62},[52,760,72],{"emptyLinePlaceholder":71},[52,762,763,765,767,769,771],{"class":54,"line":68},[52,764,85],{"class":84},[52,766,89],{"class":88},[52,768,93],{"class":92},[52,770,693],{"class":96},[52,772,101],{"class":100},[52,774,775,777,779,781,783,785],{"class":54,"line":75},[52,776,108],{"class":107},[52,778,111],{"class":100},[52,780,405],{"class":141},[52,782,706],{"class":145},[52,784,405],{"class":141},[52,786,118],{"class":100},[52,788,789,791,793,795,797],{"class":54,"line":81},[52,790,341],{"class":84},[52,792,89],{"class":88},[52,794,93],{"class":92},[52,796,174],{"class":96},[52,798,101],{"class":100},[52,800,801,803,805,807,809,811],{"class":54,"line":104},[52,802,108],{"class":107},[52,804,111],{"class":100},[52,806,405],{"class":141},[52,808,736],{"class":145},[52,810,405],{"class":141},[52,812,118],{"class":100},[38,814,816],{"id":815},"how-to-debug-step-by-step","How to debug step by step",[14,818,819],{},"Use this process to find the real problem faster:",[821,822,823,826,829,832,835,838],"ol",{},[244,824,825],{},"Read the full error message carefully.",[244,827,828],{},"Check the exact line with the caret marker.",[244,830,831],{},"Check the line before it for missing punctuation.",[244,833,834],{},"Match every opening bracket with a closing bracket.",[244,836,837],{},"Match every opening quote with a closing quote.",[244,839,840],{},"Run the code again after each small fix.",[14,842,843],{},"You can also run your file from the terminal:",[43,845,849],{"className":846,"code":847,"language":848,"meta":48,"style":48},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","python your_script.py\n","bash",[17,850,851],{"__ignoreMap":48},[52,852,853,856],{"class":54,"line":55},[52,854,47],{"class":855},"sbgvK",[52,857,858],{"class":145}," your_script.py\n",[14,860,861],{},"Or ask Python to compile it and report syntax problems:",[43,863,865],{"className":846,"code":864,"language":848,"meta":48,"style":48},"python -m py_compile your_script.py\n",[17,866,867],{"__ignoreMap":48},[52,868,869,871,875,878],{"class":54,"line":55},[52,870,47],{"class":855},[52,872,874],{"class":873},"stzsN"," -m",[52,876,877],{"class":145}," py_compile",[52,879,858],{"class":145},[14,881,882,883,36],{},"If you want a broader process for finding problems, see this ",[260,884,886],{"href":885},"\u002Fhow-to\u002Fhow-to-debug-python-code-beginner-guide\u002F","beginner guide to debugging Python code",[38,888,890],{"id":889},"mistakes-beginners-often-make","Mistakes beginners often make",[14,892,893,894,896],{},"These mistakes often lead to ",[17,895,19],{},":",[241,898,899,912,921,924,930],{},[244,900,901,902,278,904,278,906,278,908,484,910],{},"Forgetting the colon in ",[17,903,85],{},[17,905,194],{},[17,907,283],{},[17,909,286],{},[17,911,289],{},[244,913,914,915,338,917,920],{},"Using ",[17,916,138],{},[17,918,919],{},"=="," in a condition",[244,922,923],{},"Leaving a string unfinished",[244,925,334,926,338,928],{},[17,927,337],{},[17,929,341],{},[244,931,932],{},"Using natural language instead of Python syntax",[14,934,935],{},"For example, this is invalid Python:",[43,937,939],{"className":45,"code":938,"language":47,"meta":48,"style":48},"age = 18\n\nif age is greater than 16:\n    print(\"You can apply\")\n",[17,940,941,951,955,973],{"__ignoreMap":48},[52,942,943,946,948],{"class":54,"line":55},[52,944,945],{"class":88},"age ",[52,947,138],{"class":92},[52,949,950],{"class":96}," 18\n",[52,952,953],{"class":54,"line":62},[52,954,72],{"emptyLinePlaceholder":71},[52,956,957,959,962,965,968,971],{"class":54,"line":68},[52,958,85],{"class":84},[52,960,961],{"class":88}," age ",[52,963,964],{"class":92},"is",[52,966,967],{"class":88}," greater than ",[52,969,970],{"class":96},"16",[52,972,101],{"class":100},[52,974,975,977,979,981,984,986],{"class":54,"line":75},[52,976,108],{"class":107},[52,978,111],{"class":100},[52,980,405],{"class":141},[52,982,983],{"class":145},"You can apply",[52,985,405],{"class":141},[52,987,118],{"class":100},[14,989,990,991,994],{},"Python does not understand ",[17,992,993],{},"is greater than"," as a condition.",[14,996,997],{},"Correct version:",[43,999,1001],{"className":45,"code":1000,"language":47,"meta":48,"style":48},"age = 18\n\nif age > 16:\n    print(\"You can apply\")\n",[17,1002,1003,1011,1015,1028],{"__ignoreMap":48},[52,1004,1005,1007,1009],{"class":54,"line":55},[52,1006,945],{"class":88},[52,1008,138],{"class":92},[52,1010,950],{"class":96},[52,1012,1013],{"class":54,"line":62},[52,1014,72],{"emptyLinePlaceholder":71},[52,1016,1017,1019,1021,1023,1026],{"class":54,"line":68},[52,1018,85],{"class":84},[52,1020,961],{"class":88},[52,1022,93],{"class":92},[52,1024,1025],{"class":96}," 16",[52,1027,101],{"class":100},[52,1029,1030,1032,1034,1036,1038,1040],{"class":54,"line":75},[52,1031,108],{"class":107},[52,1033,111],{"class":100},[52,1035,405],{"class":141},[52,1037,983],{"class":145},[52,1039,405],{"class":141},[52,1041,118],{"class":100},[38,1043,1045],{"id":1044},"related-errors","Related errors",[14,1047,1048],{},"Sometimes the message changes once you get closer to the real problem. Related errors include:",[241,1050,1051,1055,1061,1067,1073],{},[244,1052,1053],{},[260,1054,494],{"href":493},[244,1056,1057],{},[260,1058,1060],{"href":1059},"\u002Ferrors\u002Fsyntaxerror-unexpected-eof-while-parsing-fix","SyntaxError: unexpected EOF while parsing",[244,1062,1063],{},[260,1064,1066],{"href":1065},"\u002Ferrors\u002Fsyntaxerror-eol-while-scanning-string-literal-fix","SyntaxError: EOL while scanning string literal",[244,1068,1069],{},[260,1070,1072],{"href":1071},"\u002Ferrors\u002Findentationerror-expected-an-indented-block-fix","IndentationError: expected an indented block",[244,1074,1075],{},[260,1076,1078],{"href":1077},"\u002Ferrors\u002Findentationerror-unexpected-indent-fix","IndentationError: unexpected indent",[38,1080,1082],{"id":1081},"faq","FAQ",[363,1084,1086],{"id":1085},"why-does-python-point-to-the-wrong-line","Why does Python point to the wrong line?",[14,1088,1089],{},"Python points to where it noticed the syntax problem. The real cause is often on the same line or the line before it.",[363,1091,1093],{"id":1092},"is-syntaxerror-the-same-as-indentationerror","Is SyntaxError the same as IndentationError?",[14,1095,1096,1097,1100],{},"No. ",[17,1098,1099],{},"IndentationError"," is a more specific syntax-related error about spacing and code blocks.",[363,1102,1104],{"id":1103},"can-a-missing-bracket-cause-invalid-syntax","Can a missing bracket cause invalid syntax?",[14,1106,1107],{},"Yes. Missing brackets, quotes, or braces are very common causes of this error.",[363,1109,1111],{"id":1110},"how-do-i-fix-invalid-syntax-quickly","How do I fix invalid syntax quickly?",[14,1113,1114],{},"Check for missing colons, unclosed quotes, unclosed brackets, and misspelled keywords near the highlighted line.",[38,1116,1118],{"id":1117},"see-also","See also",[241,1120,1121,1125,1130,1135],{},[244,1122,1123],{},[260,1124,263],{"href":262},[244,1126,1127],{},[260,1128,1129],{"href":350},"Python indentation rules and why they matter",[244,1131,1132],{},[260,1133,1134],{"href":885},"How to debug Python code",[244,1136,1137],{},[260,1138,1060],{"href":1059},[1140,1141,1142],"style",{},"html pre.shiki code .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}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 .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 .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 .slqww, html code.shiki .slqww{--shiki-light:#6182B8;--shiki-default:#24292E;--shiki-dark:#E1E4E8}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 .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":48,"searchDepth":62,"depth":62,"links":1144},[1145,1146,1147,1148,1153,1159,1160,1161,1162,1168],{"id":40,"depth":62,"text":41},{"id":232,"depth":62,"text":233},{"id":266,"depth":62,"text":267},{"id":354,"depth":62,"text":355,"children":1149},[1150,1151,1152],{"id":365,"depth":68,"text":366},{"id":421,"depth":68,"text":422},{"id":468,"depth":68,"text":469},{"id":497,"depth":62,"text":498,"children":1154},[1155,1156,1157,1158],{"id":552,"depth":68,"text":553},{"id":587,"depth":68,"text":588},{"id":620,"depth":68,"text":621},{"id":661,"depth":68,"text":662},{"id":815,"depth":62,"text":816},{"id":889,"depth":62,"text":890},{"id":1044,"depth":62,"text":1045},{"id":1081,"depth":62,"text":1082,"children":1163},[1164,1165,1166,1167],{"id":1085,"depth":68,"text":1086},{"id":1092,"depth":68,"text":1093},{"id":1103,"depth":68,"text":1104},{"id":1110,"depth":68,"text":1111},{"id":1117,"depth":62,"text":1118},"Master syntaxerror invalid syntax fix in our comprehensive Python beginner guide.","md",{},"\u002Ferrors\u002Fsyntaxerror-invalid-syntax-fix",{"title":5,"description":1169},"errors\u002Fsyntaxerror-invalid-syntax-fix","RIOB42O_Na6AGGhOGbTkynOH_dUq_Js_91g0LLTq2Gs",1777585503269]