[{"data":1,"prerenderedAt":1190},["ShallowReactive",2],{"doc-\u002Ferrors\u002Fsyntaxerror-invalid-character-in-identifier-fix":3},{"id":4,"title":5,"body":6,"description":1183,"extension":1184,"meta":1185,"navigation":88,"path":1186,"seo":1187,"stem":1188,"__hash__":1189},"content\u002Ferrors\u002Fsyntaxerror-invalid-character-in-identifier-fix.md","SyntaxError: invalid character in identifier (Fix)",{"type":7,"value":8,"toc":1144},"minimark",[9,13,21,24,27,32,131,134,147,151,154,162,173,176,237,240,243,247,250,285,290,307,316,320,324,327,343,354,357,376,379,387,391,394,427,430,432,461,463,468,472,475,505,508,510,538,540,546,550,553,580,588,592,595,599,602,616,619,626,629,667,670,674,677,694,698,701,704,708,711,729,732,736,739,743,760,763,767,770,774,777,819,822,833,837,840,885,888,906,910,913,947,951,954,977,981,984,1003,1006,1013,1017,1020,1037,1040,1054,1058,1061,1064,1082,1086,1090,1093,1097,1100,1104,1107,1111,1114,1118,1140],[10,11,5],"h1",{"id":12},"syntaxerror-invalid-character-in-identifier-fix",[14,15,16,20],"p",{},[17,18,19],"code",{},"SyntaxError: invalid character in identifier"," means Python found a character in your code that does not belong there.",[14,22,23],{},"This usually happens when code contains a character that looks normal but is not the normal Python version. Common examples include curly quotes, an em dash, or a hidden Unicode symbol copied from a website, PDF, or document.",[14,25,26],{},"This page shows what the error means, what causes it, how to find the bad character, and how to fix it.",[28,29,31],"h2",{"id":30},"quick-fix","Quick fix",[33,34,39],"pre",{"className":35,"code":36,"language":37,"meta":38,"style":38},"language-python shiki shiki-themes material-theme-lighter github-light github-dark","name = \"Alice\"\nprint(name)\n\n# Common problem:\n# print(“Hello”)   # curly quotes cause the error\n\n# Fix:\nprint(\"Hello\")\n","python","",[17,40,41,65,83,90,97,103,108,114],{"__ignoreMap":38},[42,43,46,50,54,58,62],"span",{"class":44,"line":45},"line",1,[42,47,49],{"class":48},"su5hD","name ",[42,51,53],{"class":52},"smGrS","=",[42,55,57],{"class":56},"sjJ54"," \"",[42,59,61],{"class":60},"s_sjI","Alice",[42,63,64],{"class":56},"\"\n",[42,66,68,72,76,80],{"class":44,"line":67},2,[42,69,71],{"class":70},"sptTA","print",[42,73,75],{"class":74},"sP7_E","(",[42,77,79],{"class":78},"slqww","name",[42,81,82],{"class":74},")\n",[42,84,86],{"class":44,"line":85},3,[42,87,89],{"emptyLinePlaceholder":88},true,"\n",[42,91,93],{"class":44,"line":92},4,[42,94,96],{"class":95},"sutJx","# Common problem:\n",[42,98,100],{"class":44,"line":99},5,[42,101,102],{"class":95},"# print(“Hello”)   # curly quotes cause the error\n",[42,104,106],{"class":44,"line":105},6,[42,107,89],{"emptyLinePlaceholder":88},[42,109,111],{"class":44,"line":110},7,[42,112,113],{"class":95},"# Fix:\n",[42,115,117,119,121,124,127,129],{"class":44,"line":116},8,[42,118,71],{"class":70},[42,120,75],{"class":74},[42,122,123],{"class":56},"\"",[42,125,126],{"class":60},"Hello",[42,128,123],{"class":56},[42,130,82],{"class":74},[14,132,133],{},"In many cases, the fastest fix is:",[135,136,137,141,144],"ul",{},[138,139,140],"li",{},"Delete the suspicious character",[138,142,143],{},"Type it again manually",[138,145,146],{},"Use normal keyboard characters only",[28,148,150],{"id":149},"what-this-error-means","What this error means",[14,152,153],{},"Python found a character inside a name or line of code that it cannot use there.",[14,155,156,157,161],{},"A Python ",[158,159,160],"strong",{},"identifier"," is a name such as:",[135,163,164,167,170],{},[138,165,166],{},"A variable name",[138,168,169],{},"A function name",[138,171,172],{},"A class name",[14,174,175],{},"For example, these are identifiers:",[33,177,179],{"className":35,"code":178,"language":37,"meta":38,"style":38},"user_name = \"Alice\"\n\ndef greet():\n    pass\n\nclass Person:\n    pass\n",[17,180,181,194,198,211,217,221,233],{"__ignoreMap":38},[42,182,183,186,188,190,192],{"class":44,"line":45},[42,184,185],{"class":48},"user_name ",[42,187,53],{"class":52},[42,189,57],{"class":56},[42,191,61],{"class":60},[42,193,64],{"class":56},[42,195,196],{"class":44,"line":67},[42,197,89],{"emptyLinePlaceholder":88},[42,199,200,204,208],{"class":44,"line":85},[42,201,203],{"class":202},"sbsja","def",[42,205,207],{"class":206},"sGLFI"," greet",[42,209,210],{"class":74},"():\n",[42,212,213],{"class":44,"line":92},[42,214,216],{"class":215},"sVHd0","    pass\n",[42,218,219],{"class":44,"line":99},[42,220,89],{"emptyLinePlaceholder":88},[42,222,223,226,230],{"class":44,"line":105},[42,224,225],{"class":202},"class",[42,227,229],{"class":228},"sbgvK"," Person",[42,231,232],{"class":74},":\n",[42,234,235],{"class":44,"line":110},[42,236,216],{"class":215},[14,238,239],{},"The problem is often not the whole line. It is usually just one bad character on that line.",[14,241,242],{},"Also, the character may look correct on screen but still be different from the normal keyboard version.",[28,244,246],{"id":245},"what-usually-causes-it","What usually causes it",[14,248,249],{},"Common causes include:",[135,251,252,255,266,279,282],{},[138,253,254],{},"Copying code from a web page, PDF, Word document, or chat app",[138,256,257,258,261,262,265],{},"Using curly quotes like ",[17,259,260],{},"“ ”"," or ",[17,263,264],{},"‘ ’"," instead of straight quotes",[138,267,268,269,261,272,275,276],{},"Using a dash like ",[17,270,271],{},"–",[17,273,274],{},"—"," instead of the normal minus sign ",[17,277,278],{},"-",[138,280,281],{},"Pasting invisible characters or non-breaking spaces into code",[138,283,284],{},"Using punctuation from another keyboard layout inside names",[286,287,289],"h3",{"id":288},"common-causes-at-a-glance","Common causes at a glance",[135,291,292,295,298,301,304],{},[138,293,294],{},"Curly quotes copied from a website or document",[138,296,297],{},"Em dash or en dash used instead of a minus sign",[138,299,300],{},"Invisible Unicode character pasted into code",[138,302,303],{},"Non-breaking space inside a line",[138,305,306],{},"Invalid symbol inside a variable or function name",[14,308,309,310,315],{},"If you are new to Python syntax, it also helps to review ",[311,312,314],"a",{"href":313},"\u002Flearn\u002Fpython-syntax-basics-explained\u002F","Python syntax basics",".",[28,317,319],{"id":318},"example-that-causes-the-error","Example that causes the error",[286,321,323],{"id":322},"example-1-curly-quotes","Example 1: Curly quotes",[14,325,326],{},"This line uses curly quotes, not normal double quotes:",[33,328,330],{"className":35,"code":329,"language":37,"meta":38,"style":38},"print(“Hello”)\n",[17,331,332],{"__ignoreMap":38},[42,333,334,336,338,341],{"class":44,"line":45},[42,335,71],{"class":70},[42,337,75],{"class":74},[42,339,340],{"class":78},"“Hello”",[42,342,82],{"class":74},[14,344,345,346,349,350,353],{},"Python will raise a syntax error because ",[17,347,348],{},"“"," and ",[17,351,352],{},"”"," are not valid string delimiters in Python.",[14,355,356],{},"Correct version:",[33,358,360],{"className":35,"code":359,"language":37,"meta":38,"style":38},"print(\"Hello\")\n",[17,361,362],{"__ignoreMap":38},[42,363,364,366,368,370,372,374],{"class":44,"line":45},[42,365,71],{"class":70},[42,367,75],{"class":74},[42,369,123],{"class":56},[42,371,126],{"class":60},[42,373,123],{"class":56},[42,375,82],{"class":74},[14,377,378],{},"Expected output:",[33,380,385],{"className":381,"code":383,"language":384,"meta":38},[382],"language-text","Hello\n","text",[17,386,383],{"__ignoreMap":38},[286,388,390],{"id":389},"example-2-em-dash-instead-of-minus-sign","Example 2: Em dash instead of minus sign",[14,392,393],{},"This line uses an em dash:",[33,395,397],{"className":35,"code":396,"language":37,"meta":38,"style":38},"result = 10 — 5\nprint(result)\n",[17,398,399,416],{"__ignoreMap":38},[42,400,401,404,406,410,413],{"class":44,"line":45},[42,402,403],{"class":48},"result ",[42,405,53],{"class":52},[42,407,409],{"class":408},"srdBf"," 10",[42,411,412],{"class":48}," — ",[42,414,415],{"class":408},"5\n",[42,417,418,420,422,425],{"class":44,"line":67},[42,419,71],{"class":70},[42,421,75],{"class":74},[42,423,424],{"class":78},"result",[42,426,82],{"class":74},[14,428,429],{},"That dash is not the normal minus sign, so Python cannot parse it correctly.",[14,431,356],{},[33,433,435],{"className":35,"code":434,"language":37,"meta":38,"style":38},"result = 10 - 5\nprint(result)\n",[17,436,437,451],{"__ignoreMap":38},[42,438,439,441,443,445,448],{"class":44,"line":45},[42,440,403],{"class":48},[42,442,53],{"class":52},[42,444,409],{"class":408},[42,446,447],{"class":52}," -",[42,449,450],{"class":408}," 5\n",[42,452,453,455,457,459],{"class":44,"line":67},[42,454,71],{"class":70},[42,456,75],{"class":74},[42,458,424],{"class":78},[42,460,82],{"class":74},[14,462,378],{},[33,464,466],{"className":465,"code":415,"language":384,"meta":38},[382],[17,467,415],{"__ignoreMap":38},[286,469,471],{"id":470},"example-3-bad-character-in-a-name","Example 3: Bad character in a name",[14,473,474],{},"Here, the variable name contains an invalid symbol:",[33,476,478],{"className":35,"code":477,"language":37,"meta":38,"style":38},"user—name = \"Sam\"\nprint(user—name)\n",[17,479,480,494],{"__ignoreMap":38},[42,481,482,485,487,489,492],{"class":44,"line":45},[42,483,484],{"class":48},"user—name ",[42,486,53],{"class":52},[42,488,57],{"class":56},[42,490,491],{"class":60},"Sam",[42,493,64],{"class":56},[42,495,496,498,500,503],{"class":44,"line":67},[42,497,71],{"class":70},[42,499,75],{"class":74},[42,501,502],{"class":78},"user—name",[42,504,82],{"class":74},[14,506,507],{},"The em dash is not valid in a Python identifier.",[14,509,356],{},[33,511,513],{"className":35,"code":512,"language":37,"meta":38,"style":38},"user_name = \"Sam\"\nprint(user_name)\n",[17,514,515,527],{"__ignoreMap":38},[42,516,517,519,521,523,525],{"class":44,"line":45},[42,518,185],{"class":48},[42,520,53],{"class":52},[42,522,57],{"class":56},[42,524,491],{"class":60},[42,526,64],{"class":56},[42,528,529,531,533,536],{"class":44,"line":67},[42,530,71],{"class":70},[42,532,75],{"class":74},[42,534,535],{"class":78},"user_name",[42,537,82],{"class":74},[14,539,378],{},[33,541,544],{"className":542,"code":543,"language":384,"meta":38},[382],"Sam\n",[17,545,543],{"__ignoreMap":38},[28,547,549],{"id":548},"how-to-fix-it","How to fix it",[14,551,552],{},"Try these fixes:",[135,554,555,558,566,571,574,577],{},[138,556,557],{},"Delete the suspicious character and type it again manually",[138,559,560,561,261,563],{},"Replace curly quotes with normal quotes: ",[17,562,123],{},[17,564,565],{},"'",[138,567,568,569],{},"Replace long dashes with the normal minus sign: ",[17,570,278],{},[138,572,573],{},"Retype the whole line if you cannot see which character is wrong",[138,575,576],{},"Paste the code into a plain text editor to remove rich-text formatting",[138,578,579],{},"Check variable and function names for unusual symbols",[14,581,582,583,587],{},"If the error is inside a string example, reviewing ",[311,584,586],{"href":585},"\u002Flearn\u002Fpython-strings-explained-basics-and-examples\u002F","Python strings explained"," can help you spot quote problems faster.",[28,589,591],{"id":590},"how-to-find-the-bad-character","How to find the bad character",[14,593,594],{},"Use the traceback to narrow it down.",[286,596,598],{"id":597},"_1-look-at-the-line-number","1. Look at the line number",[14,600,601],{},"Run your script:",[33,603,607],{"className":604,"code":605,"language":606,"meta":38,"style":38},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","python your_script.py\n","bash",[17,608,609],{"__ignoreMap":38},[42,610,611,613],{"class":44,"line":45},[42,612,37],{"class":228},[42,614,615],{"class":60}," your_script.py\n",[14,617,618],{},"Python usually shows the exact line where the error happened.",[286,620,622,623],{"id":621},"_2-check-the-caret","2. Check the caret ",[17,624,625],{},"^",[14,627,628],{},"Sometimes Python marks the position with a caret:",[33,630,632],{"className":35,"code":631,"language":37,"meta":38,"style":38},"print(“Hello”)\n      ^\nSyntaxError: invalid character in identifier\n",[17,633,634,644,649],{"__ignoreMap":38},[42,635,636,638,640,642],{"class":44,"line":45},[42,637,71],{"class":70},[42,639,75],{"class":74},[42,641,340],{"class":78},[42,643,82],{"class":74},[42,645,646],{"class":44,"line":67},[42,647,648],{"class":52},"      ^\n",[42,650,651,655,658,661,664],{"class":44,"line":85},[42,652,654],{"class":653},"sZMiF","SyntaxError",[42,656,657],{"class":74},":",[42,659,660],{"class":48}," invalid character ",[42,662,663],{"class":52},"in",[42,665,666],{"class":48}," identifier\n",[14,668,669],{},"The marker may point at or near the problem character.",[286,671,673],{"id":672},"_3-check-suspicious-characters-closely","3. Check suspicious characters closely",[14,675,676],{},"Look carefully for:",[135,678,679,682,685,688,691],{},[138,680,681],{},"Quotes",[138,683,684],{},"Dashes",[138,686,687],{},"Spaces",[138,689,690],{},"Punctuation",[138,692,693],{},"Characters copied from another source",[286,695,697],{"id":696},"_4-retype-the-suspicious-part","4. Retype the suspicious part",[14,699,700],{},"Move through the line character by character and retype the part that looks wrong.",[14,702,703],{},"If needed, retype the whole line manually.",[286,705,707],{"id":706},"_5-compile-the-file-to-check-syntax","5. Compile the file to check syntax",[14,709,710],{},"You can also ask Python to check the file without running it:",[33,712,714],{"className":604,"code":713,"language":606,"meta":38,"style":38},"python -m py_compile your_script.py\n",[17,715,716],{"__ignoreMap":38},[42,717,718,720,724,727],{"class":44,"line":45},[42,719,37],{"class":228},[42,721,723],{"class":722},"stzsN"," -m",[42,725,726],{"class":60}," py_compile",[42,728,615],{"class":60},[14,730,731],{},"This is useful when you want to find syntax problems quickly.",[286,733,735],{"id":734},"_6-try-a-plain-text-editor","6. Try a plain text editor",[14,737,738],{},"If the line still looks fine, paste it into a plain text editor and compare it with your code editor version.",[286,740,742],{"id":741},"_7-utf-8-mode-may-help-in-some-environments","7. UTF-8 mode may help in some environments",[33,744,746],{"className":604,"code":745,"language":606,"meta":38,"style":38},"python -X utf8 your_script.py\n",[17,747,748],{"__ignoreMap":38},[42,749,750,752,755,758],{"class":44,"line":45},[42,751,37],{"class":228},[42,753,754],{"class":722}," -X",[42,756,757],{"class":60}," utf8",[42,759,615],{"class":60},[14,761,762],{},"This does not fix invalid characters by itself, but it can help avoid encoding-related confusion in some setups.",[28,764,766],{"id":765},"valid-vs-invalid-examples","Valid vs invalid examples",[14,768,769],{},"Python identifiers should be simple and predictable.",[286,771,773],{"id":772},"valid-names","Valid names",[14,775,776],{},"These are valid identifiers:",[33,778,780],{"className":35,"code":779,"language":37,"meta":38,"style":38},"name = \"Ana\"\nuser_1 = \"Tom\"\ntotal_count = 3\n",[17,781,782,795,809],{"__ignoreMap":38},[42,783,784,786,788,790,793],{"class":44,"line":45},[42,785,49],{"class":48},[42,787,53],{"class":52},[42,789,57],{"class":56},[42,791,792],{"class":60},"Ana",[42,794,64],{"class":56},[42,796,797,800,802,804,807],{"class":44,"line":67},[42,798,799],{"class":48},"user_1 ",[42,801,53],{"class":52},[42,803,57],{"class":56},[42,805,806],{"class":60},"Tom",[42,808,64],{"class":56},[42,810,811,814,816],{"class":44,"line":85},[42,812,813],{"class":48},"total_count ",[42,815,53],{"class":52},[42,817,818],{"class":408}," 3\n",[14,820,821],{},"Why they work:",[135,823,824,827,830],{},[138,825,826],{},"They use letters",[138,828,829],{},"They use numbers only after the first character",[138,831,832],{},"They use underscores",[286,834,836],{"id":835},"invalid-names","Invalid names",[14,838,839],{},"These are not valid:",[33,841,843],{"className":35,"code":842,"language":37,"meta":38,"style":38},"user name = \"Tom\"\nuser—name = \"Tom\"\n2name = \"Tom\"\n",[17,844,845,858,870],{"__ignoreMap":38},[42,846,847,850,852,854,856],{"class":44,"line":45},[42,848,849],{"class":48},"user name ",[42,851,53],{"class":52},[42,853,57],{"class":56},[42,855,806],{"class":60},[42,857,64],{"class":56},[42,859,860,862,864,866,868],{"class":44,"line":67},[42,861,484],{"class":48},[42,863,53],{"class":52},[42,865,57],{"class":56},[42,867,806],{"class":60},[42,869,64],{"class":56},[42,871,872,876,879,881,883],{"class":44,"line":85},[42,873,875],{"class":874},"srjyR","2name",[42,877,878],{"class":52}," =",[42,880,57],{"class":56},[42,882,806],{"class":60},[42,884,64],{"class":56},[14,886,887],{},"Problems:",[135,889,890,896,901],{},[138,891,892,895],{},[17,893,894],{},"user name"," contains a space",[138,897,898,900],{},[17,899,502],{}," contains an em dash",[138,902,903,905],{},[17,904,875],{}," starts with a number",[286,907,909],{"id":908},"valid-string-quotes","Valid string quotes",[14,911,912],{},"Use normal quotes only:",[33,914,916],{"className":35,"code":915,"language":37,"meta":38,"style":38},"message = \"Hello\"\ntext = 'Python'\n",[17,917,918,931],{"__ignoreMap":38},[42,919,920,923,925,927,929],{"class":44,"line":45},[42,921,922],{"class":48},"message ",[42,924,53],{"class":52},[42,926,57],{"class":56},[42,928,126],{"class":60},[42,930,64],{"class":56},[42,932,933,936,938,941,944],{"class":44,"line":67},[42,934,935],{"class":48},"text ",[42,937,53],{"class":52},[42,939,940],{"class":56}," '",[42,942,943],{"class":60},"Python",[42,945,946],{"class":56},"'\n",[286,948,950],{"id":949},"invalid-string-quotes","Invalid string quotes",[14,952,953],{},"These will cause problems:",[33,955,957],{"className":35,"code":956,"language":37,"meta":38,"style":38},"message = “Hello”\ntext = ‘Python’\n",[17,958,959,968],{"__ignoreMap":38},[42,960,961,963,965],{"class":44,"line":45},[42,962,922],{"class":48},[42,964,53],{"class":52},[42,966,967],{"class":48}," “Hello”\n",[42,969,970,972,974],{"class":44,"line":67},[42,971,935],{"class":48},[42,973,53],{"class":52},[42,975,976],{"class":48}," ‘Python’\n",[286,978,980],{"id":979},"valid-operators","Valid operators",[14,982,983],{},"Use standard Python operators from your keyboard:",[33,985,987],{"className":35,"code":986,"language":37,"meta":38,"style":38},"answer = 8 - 3\n",[17,988,989],{"__ignoreMap":38},[42,990,991,994,996,999,1001],{"class":44,"line":45},[42,992,993],{"class":48},"answer ",[42,995,53],{"class":52},[42,997,998],{"class":408}," 8",[42,1000,447],{"class":52},[42,1002,818],{"class":408},[14,1004,1005],{},"Not fancy punctuation copied from formatted text.",[14,1007,1008,1009,315],{},"If you see a more general syntax problem, you may also need to fix ",[311,1010,1012],{"href":1011},"\u002Ferrors\u002Fsyntaxerror-invalid-syntax-fix\u002F","SyntaxError: invalid syntax",[28,1014,1016],{"id":1015},"prevention-tips","Prevention tips",[14,1018,1019],{},"To avoid this error in the future:",[135,1021,1022,1025,1028,1031,1034],{},[138,1023,1024],{},"Write code in a code editor instead of a word processor",[138,1026,1027],{},"Avoid copying code from formatted documents when possible",[138,1029,1030],{},"If you paste code, test it right away",[138,1032,1033],{},"Use a Python-friendly editor that highlights syntax errors clearly",[138,1035,1036],{},"Keep your keyboard layout consistent when writing code",[14,1038,1039],{},"A good habit is to keep identifiers simple:",[135,1041,1042,1045,1048,1051],{},[138,1043,1044],{},"Use letters",[138,1046,1047],{},"Use numbers after the first character",[138,1049,1050],{},"Use underscores",[138,1052,1053],{},"Avoid fancy punctuation",[28,1055,1057],{"id":1056},"related-errors-to-check","Related errors to check",[14,1059,1060],{},"Sometimes this error appears alongside other beginner syntax issues.",[14,1062,1063],{},"Related pages:",[135,1065,1066,1070,1076],{},[138,1067,1068],{},[311,1069,1012],{"href":1011},[138,1071,1072],{},[311,1073,1075],{"href":1074},"\u002Ferrors\u002Fsyntaxerror-eol-while-scanning-string-literal-fix\u002F","SyntaxError: EOL while scanning string literal",[138,1077,1078],{},[311,1079,1081],{"href":1080},"\u002Ferrors\u002Fnameerror-name-is-not-defined-fix\u002F","NameError: name is not defined",[28,1083,1085],{"id":1084},"faq","FAQ",[286,1087,1089],{"id":1088},"what-is-an-identifier-in-python","What is an identifier in Python?",[14,1091,1092],{},"An identifier is a name you create in Python, such as a variable name, function name, or class name.",[286,1094,1096],{"id":1095},"can-unicode-characters-be-used-in-python-identifiers","Can Unicode characters be used in Python identifiers?",[14,1098,1099],{},"Some Unicode letters can be valid in identifiers, but many copied symbols and punctuation marks are not. If you are a beginner, it is safest to use letters, numbers, and underscores only.",[286,1101,1103],{"id":1102},"why-does-the-line-look-correct-but-still-fail","Why does the line look correct but still fail?",[14,1105,1106],{},"The bad character may look almost the same as a normal one. This often happens with curly quotes, long dashes, or invisible spaces.",[286,1108,1110],{"id":1109},"what-is-the-fastest-fix","What is the fastest fix?",[14,1112,1113],{},"Delete the part of the line that looks suspicious and type it again manually in your code editor.",[28,1115,1117],{"id":1116},"see-also","See also",[135,1119,1120,1124,1128,1132,1136],{},[138,1121,1122],{},[311,1123,1012],{"href":1011},[138,1125,1126],{},[311,1127,1075],{"href":1074},[138,1129,1130],{},[311,1131,1081],{"href":1080},[138,1133,1134],{},[311,1135,314],{"href":313},[138,1137,1138],{},[311,1139,586],{"href":585},[1141,1142,1143],"style",{},"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 .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 pre.shiki code .sptTA, html code.shiki .sptTA{--shiki-light:#6182B8;--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 .slqww, html code.shiki .slqww{--shiki-light:#6182B8;--shiki-default:#24292E;--shiki-dark:#E1E4E8}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 .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 .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 .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 .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .srjyR, html code.shiki .srjyR{--shiki-light:#90A4AE;--shiki-light-font-style:inherit;--shiki-default:#B31D28;--shiki-default-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic}",{"title":38,"searchDepth":67,"depth":67,"links":1145},[1146,1147,1148,1151,1156,1157,1167,1174,1175,1176,1182],{"id":30,"depth":67,"text":31},{"id":149,"depth":67,"text":150},{"id":245,"depth":67,"text":246,"children":1149},[1150],{"id":288,"depth":85,"text":289},{"id":318,"depth":67,"text":319,"children":1152},[1153,1154,1155],{"id":322,"depth":85,"text":323},{"id":389,"depth":85,"text":390},{"id":470,"depth":85,"text":471},{"id":548,"depth":67,"text":549},{"id":590,"depth":67,"text":591,"children":1158},[1159,1160,1162,1163,1164,1165,1166],{"id":597,"depth":85,"text":598},{"id":621,"depth":85,"text":1161},"2. Check the caret ^",{"id":672,"depth":85,"text":673},{"id":696,"depth":85,"text":697},{"id":706,"depth":85,"text":707},{"id":734,"depth":85,"text":735},{"id":741,"depth":85,"text":742},{"id":765,"depth":67,"text":766,"children":1168},[1169,1170,1171,1172,1173],{"id":772,"depth":85,"text":773},{"id":835,"depth":85,"text":836},{"id":908,"depth":85,"text":909},{"id":949,"depth":85,"text":950},{"id":979,"depth":85,"text":980},{"id":1015,"depth":67,"text":1016},{"id":1056,"depth":67,"text":1057},{"id":1084,"depth":67,"text":1085,"children":1177},[1178,1179,1180,1181],{"id":1088,"depth":85,"text":1089},{"id":1095,"depth":85,"text":1096},{"id":1102,"depth":85,"text":1103},{"id":1109,"depth":85,"text":1110},{"id":1116,"depth":67,"text":1117},"Master syntaxerror invalid character in identifier fix in our comprehensive Python beginner guide.","md",{},"\u002Ferrors\u002Fsyntaxerror-invalid-character-in-identifier-fix",{"title":5,"description":1183},"errors\u002Fsyntaxerror-invalid-character-in-identifier-fix","MsHaSgTClzVhA30MNRrtHOs-xgqpHFdiyqKgbgtH_Yc",1777585480909]