Python SyntaxError: неожиданный EOF при синтаксическом анализе решения

| | | | | | | | | | | | | | | | | | | |

Python - —ç—Ç–æ —è–∑—ã–∫ —Å–æ —Å—Ç–∞—Ç–∏—á–µ—Å–∫–æ–π —Ç–∏–ø–∏–∑–∞—Ü–∏–µ–π. –≠—Ç–æ –æ–∑–Ω–∞—á–∞–µ—Ç, —á—Ç–æ –∫–æ–¥ –Ω–∞–ø–∏—Å–∞–Ω —Å—Ç—Ä–æ–≥–æ.

–ï—Å–ª–∏ –≤—ã –∑–∞–±—ã–ª–∏ –∑–∞–≤–µ—Ä—à–∏—Ç—å –±–ª–æ–∫ –∫–æ–¥–∞ –≤ —Å–≤–æ–µ–º –∫–æ–¥–µ, –≤—ã –ø–æ–ª—É—á–∏—Ç–µ –æ—à–∏–±–∫—É —Ç–∏–ø–∞ " SyntaxError: –Ω–µ–æ–∂–∏–¥–∞–Ω–Ω—ã–π EOF –ø—Ä–∏ —Å–∏–Ω—Ç–∞–∫—Å–∏—á–µ—Å–∫–æ–º –∞–Ω–∞–ª–∏–∑–µ & rdquo ;. –≠—Ç–æ –ø—Ä–æ–∏—Å—Ö–æ–¥–∏—Ç –≤ —Ä—è–¥–µ —Å–∏—Ç—É–∞—Ü–∏–π, –Ω–∞–ø—Ä–∏–º–µ—Ä, –∫–æ–≥–¥–∞ –≤—ã –∑–∞–±—ã–≤–∞–µ—Ç–µ –¥–æ–±–∞–≤–∏—Ç—å —Å—Ç—Ä–æ–∫—É –∫–æ–¥–∞ –≤ —Ü–∏–∫–ª for.

–í —ç—Ç–æ–º —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–µ –º—ã –ø–æ–≥–æ–≤–æ—Ä–∏–º –æ–± —ç—Ç–æ–π –æ—à–∏–±–∫–µ Python –∏ –æ —Ç–æ–º, –ø–æ—á–µ–º—É –æ–Ω–∞ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç. –ú—ã —Ä–∞—Å—Å–º–æ—Ç—Ä–∏–º –Ω–µ—Å–∫–æ–ª—å–∫–æ –ø—Ä–∏–º–µ—Ä–æ–≤ —Å—Ü–µ–Ω–∞—Ä–∏–µ–≤, —á—Ç–æ–±—ã –≤—ã –º–æ–≥–ª–∏ –ø–æ–Ω—è—Ç—å, –∫–∞–∫ —Ä–µ—à–∏—Ç—å —ç—Ç—É —Ä–∞—Å–ø—Ä–æ—Å—Ç—Ä–∞–Ω–µ–Ω–Ω—É—é –æ—à–∏–±–∫—É.

SyntaxError: –Ω–µ–æ–∂–∏–¥–∞–Ω–Ω—ã–π EOF –ø—Ä–∏ —Å–∏–Ω—Ç–∞–∫—Å–∏—á–µ—Å–∫–æ–º –∞–Ω–∞–ª–∏–∑–µ

" SyntaxError: –Ω–µ–æ–∂–∏–¥–∞–Ω–Ω—ã–π EOF –ø—Ä–∏ —Å–∏–Ω—Ç–∞–∫—Å–∏—á–µ—Å–∫–æ–º –∞–Ω–∞–ª–∏–∑–µ " –æ—à–∏–±–∫–∞ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –∫–æ–≥–¥–∞ –∫–æ–Ω–µ—Ü –≤–∞—à–µ–≥–æ –∏—Å—Ö–æ–¥–Ω–æ–≥–æ –∫–æ–¥–∞ –¥–æ—Å—Ç–∏–≥–∞–µ—Ç—Å—è –¥–æ —Ç–æ–≥–æ, –∫–∞–∫ –≤–µ—Å—å –∫–æ–¥ –±—É–¥–µ—Ç –≤—ã–ø–æ–ª–Ω–µ–Ω. –≠—Ç–æ –ø—Ä–æ–∏—Å—Ö–æ–¥–∏—Ç, –∫–æ–≥–¥–∞ –≤—ã –æ—à–∏–±–∞–µ—Ç–µ—Å—å –≤ —Å—Ç—Ä—É–∫—Ç—É—Ä–µ –∏–ª–∏ —Å–∏–Ω—Ç–∞–∫—Å–∏—Å–µ —Å–≤–æ–µ–≥–æ –∫–æ–¥–∞.

EOF –æ–∑–Ω–∞—á–∞–µ—Ç –∫–æ–Ω–µ—Ü —Ñ–∞–π–ª–∞. –≠—Ç–æ –ø–æ—Å–ª–µ–¥–Ω–∏–π —Å–∏–º–≤–æ–ª –≤ –ø—Ä–æ–≥—Ä–∞–º–º–µ Python.

Python –¥–æ—Å—Ç–∏–≥–∞–µ—Ç –∫–æ–Ω—Ü–∞ —Ñ–∞–π–ª–∞ –ø–µ—Ä–µ–¥ –∑–∞–ø—É—Å–∫–æ–º –∫–∞–∂–¥–æ–≥–æ –±–ª–æ–∫–∞ –∫–æ–¥–∞, –µ—Å–ª–∏:

  • –í—ã –∑–∞–±—ã–ª–∏ —á—Ç–æ–±—ã –∑–∞–∫–ª—é—á–∏—Ç—å –∫–æ–¥ –≤ —Å–ø–µ—Ü–∏–∞–ª—å–Ω—ã–π –æ–ø–µ—Ä–∞—Ç–æ—Ä, —Ç–∞–∫–æ–π –∫–∞–∫ —Ü–∏–∫–ª for, —Ü–∏–∫–ª while –∏–ª–∏ —Ñ—É–Ω–∫—Ü–∏—è.
  • –í—ã –Ω–µ –∑–∞–∫—Ä—ã–≤–∞–µ—Ç–µ –≤—Å–µ –∫—Ä—É–≥–ª—ã–µ —Å–∫–æ–±–∫–∏ –≤ —Å—Ç—Ä–æ–∫–µ –∫–æ–¥–∞ –≤ —Å–≤–æ–µ–π –ø—Ä–æ–≥—Ä–∞–º–º–µ.
  • –î–∞–≤–∞–π—Ç–µ —Ä–∞—Å—Å–º–æ—Ç—Ä–∏–º –∫–∞–∂–¥—É—é –∏–∑ —ç—Ç–∏—Ö –æ—à–∏–±–æ–∫ –ø–æ –æ—á–µ—Ä–µ–¥–∏. –ï—Å—Ç—å –∏ –¥—Ä—É–≥–∏–µ —Å—Ü–µ–Ω–∞—Ä–∏–∏, –ø—Ä–∏ –∫–æ—Ç–æ—Ä—ã—Ö –≤–æ–∑–Ω–∏–∫–∞–µ—Ç —ç—Ç–∞ –æ—à–∏–±–∫–∞, –Ω–æ —É–ø–æ–º—è–Ω—É—Ç—ã–µ –≤—ã—à–µ —è–≤–ª—è—é—Ç—Å—è –Ω–∞–∏–±–æ–ª–µ–µ —Ä–∞—Å–ø—Ä–æ—Å—Ç—Ä–∞–Ω–µ–Ω–Ω—ã–º–∏.

    –ü—Ä–∏–º–µ—Ä ‚Ññ1: –í–∫–ª—é—á–µ–Ω–∏–µ –∫–æ–¥–∞ –≤ —Å–ø–µ—Ü–∏–∞–ª—å–Ω—ã–π –æ–ø–µ—Ä–∞—Ç–æ—Ä

    For —Ü–∏–∫–ª—ã , –æ–ø–µ—Ä–∞—Ç–æ—Ä—ã if , —Ü–∏–∫–ª—ã while , –∞ –¥–ª—è —Ñ—É–Ω–∫—Ü–∏–π —Ç—Ä–µ–±—É–µ—Ç—Å—è —Ö–æ—Ç—è –±—ã –æ–¥–Ω–∞ —Å—Ç—Ä–æ–∫–∞ –∫–æ–¥–∞ –≤ —Å–≤–æ–∏—Ö –æ–ø–µ—Ä–∞—Ç–æ—Ä–∞—Ö. –ï—Å–ª–∏ –≤—ã –∑–∞–±—É–¥–µ—Ç–µ –≤–∫–ª—é—á–∏—Ç—å —Å—Ç—Ä–æ–∫—É –∫–æ–¥–∞ –≤ —Å–ø–µ—Ü–∏–∞–ª—å–Ω–æ–µ –≤—ã—Ä–∞–∂–µ–Ω–∏–µ, —ç—Ç–æ –ø—Ä–∏–≤–µ–¥–µ—Ç –∫ –Ω–µ–æ–∂–∏–¥–∞–Ω–Ω–æ–π –æ—à–∏–±–∫–µ EOF.

    81% —É—á–∞—Å—Ç–Ω–∏–∫–æ–≤ –∑–∞—è–≤–∏–ª–∏, —á—Ç–æ –æ–Ω–∏ –ø–æ—á—É–≤—Å—Ç–≤–æ–≤–∞–ª–∏ —Å–µ–±—è –±–æ–ª–µ–µ —É–≤–µ—Ä–µ–Ω–Ω—ã–º–∏ –≤ —Å–≤–æ–∏—Ö –ø–µ—Ä—Å–ø–µ–∫—Ç–∏–≤–∞—Ö —Ç—Ä—É–¥–æ—É—Å—Ç—Ä–æ–π—Å—Ç–≤–∞ –≤ —Å—Ñ–µ—Ä–µ –≤—ã—Å–æ–∫–∏—Ö —Ç–µ—Ö–Ω–æ–ª–æ–≥–∏–π –ø–æ—Å–ª–µ –ø–æ—Å–µ—â–µ–Ω–∏—è —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è. –ü–æ–ª—É—á–∏—Ç–µ –ø—Ä–∏–≥–ª–∞—à–µ–Ω–∏–µ –Ω–∞ —É—á–µ–±–Ω—ã–π –∫—É—Ä—Å —Å–µ–≥–æ–¥–Ω—è.

    –°—Ä–µ–¥–Ω–∏–π –≤—ã–ø—É—Å–∫–Ω–∏–∫ —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è –ø–æ—Ç—Ä–∞—Ç–∏–ª –º–µ–Ω–µ–µ —à–µ—Å—Ç–∏ –º–µ—Å—è—Ü–µ–≤ –Ω–∞ —Å–º–µ–Ω—É –∫–∞—Ä—å–µ—Ä—ã, –æ—Ç –Ω–∞—á–∞–ª–∞ —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è –¥–æ –ø–æ–∏—Å–∫–∞ —Å–≤–æ–µ–π –ø–µ—Ä–≤–æ–π —Ä–∞–±–æ—Ç—ã.

    –í–∑–≥–ª—è–Ω–∏—Ç–µ –Ω–∞ —Ü–∏–∫–ª, –∫–æ—Ç–æ—Ä—ã–π —Ä–∞—Å–ø–µ—á–∞—Ç—ã–≤–∞–µ—Ç —Å–ø–∏—Å–æ–∫ –∏–Ω–≥—Ä–µ–¥–∏–µ–Ω—Ç–æ–≤ –≤ —Ä–µ—Ü–µ–ø—Ç–µ:

    –ú—ã –æ–ø—Ä–µ–¥–µ–ª—è–µ–º –ø–µ—Ä–µ–º–µ–Ω–Ω–∞—è —Å –∏–º–µ–Ω–µ–º " –∏–Ω–≥—Ä–∏–¥–∏–µ–Ω—Ç—ã " –≤ –∫–æ—Ç–æ—Ä–æ–º —Ö—Ä–∞–Ω–∏—Ç—Å—è —Å–ø–∏—Å–æ–∫ –∏–Ω–≥—Ä–µ–¥–∏–µ–Ω—Ç–æ–≤ –¥–ª—è —Ä–µ—Ü–µ–ø—Ç–∞ –≤–∞–Ω–∏–ª—å–Ω–æ–≥–æ –ø–µ—Å–æ—á–Ω–æ–≥–æ –ø–µ—á–µ–Ω—å—è. –ú—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º —Ü–∏–∫–ª for –¥–ª—è –ø–µ—Ä–µ–±–æ—Ä–∞ –∫–∞–∂–¥–æ–≥–æ –∏–Ω–≥—Ä–µ–¥–∏–µ–Ω—Ç–∞ –≤ —Å–ø–∏—Å–∫–µ. –ó–∞–ø—É—Å—Ç–∏–º –Ω–∞—à –∫–æ–¥ –∏ –ø–æ—Å–º–æ—Ç—Ä–∏–º, —á—Ç–æ –ø—Ä–æ–∏–∑–æ–π–¥–µ—Ç:

    –ú—ã –Ω–µ –¥–æ–±–∞–≤–ª—è–ª–∏ –∫–æ–¥ –≤ –Ω–∞—à " for " –ø–µ—Ç–ª—è. –≠—Ç–æ –≤—ã–∑—ã–≤–∞–µ—Ç –æ—à–∏–±–∫—É. –≠—Ç–∞ –∂–µ –æ—à–∏–±–∫–∞ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –µ—Å–ª–∏ –º—ã –æ–ø—Ä–µ–¥–µ–ª—è–µ–º —Ü–∏–∫–ª while, –æ–ø–µ—Ä–∞—Ç–æ—Ä if –∏–ª–∏ —Ñ—É–Ω–∫—Ü–∏—é –±–µ–∑ –≤–∫–ª—é—á–µ–Ω–∏—è –∫–æ–¥–∞ –≤ –æ–ø–µ—Ä–∞—Ç–æ—Ä.

–ß—Ç–æ–±—ã —Ä–µ—à–∏—Ç—å —ç—Ç—É –ø—Ä–æ–±–ª–µ–º—É, –º—ã –¥–æ–±–∞–≤–ª—è–µ–º –Ω–µ–∫–æ—Ç–æ—Ä—ã–π –∫–æ–¥ –≤ –Ω–∞—à —Ü–∏–∫–ª. –ú—ã –¥–æ–±–∞–≤–ª—è–µ–º –æ–ø–µ—Ä–∞—Ç–æ—Ä print (), —á—Ç–æ–±—ã –º—ã –º–æ–≥–ª–∏ –≤—ã–≤–µ—Å—Ç–∏ –∫–∞–∂–¥—ã–π –æ—Ç–¥–µ–ª—å–Ω—ã–π –∏–Ω–≥—Ä–µ–¥–∏–µ–Ω—Ç –Ω–∞ –∫–æ–Ω—Å–æ–ª—å: < / p>

–ü—É—Å—Ç—å " s –∑–∞–ø—É—Å—Ç–∏—Ç–µ –Ω–∞—à –∫–æ–¥:

–ù–∞—à –∫–æ–¥ —Ä–∞—Å–ø–µ—á–∞—Ç—ã–≤–∞–µ—Ç –∫–∞–∂–¥—ã–π –∏–Ω–≥—Ä–µ–¥–∏–µ–Ω—Ç –≤ –Ω–∞—à–µ–º —Å–ø–∏—Å–∫–µ –∏–Ω–≥—Ä–µ–¥–∏–µ–Ω—Ç–æ–≤. –≠—Ç–æ –≥–æ–≤–æ—Ä–∏—Ç –Ω–∞–º, —á—Ç–æ –±–ª–æ–∫–∏ –∫–æ–¥–∞ –±—ã–ª–∏ —É—Å–ø–µ—à–Ω–æ –∑–∞–≤–µ—Ä—à–µ–Ω—ã. & nbsp;

–ï—Å–ª–∏ –≤—ã —ç—Ç–æ–≥–æ –Ω–µ —Å–¥–µ–ª–∞–µ—Ç–µ –µ—Å—Ç—å –ª—é–±–æ–π –∫–æ–¥, –∫–æ—Ç–æ—Ä—ã–π –≤—ã —Ö–æ—Ç–∏—Ç–µ –¥–æ–±–∞–≤–∏—Ç—å –≤ —Å–ø–µ—Ü–∏–∞–ª—å–Ω—ã–π –æ–ø–µ—Ä–∞—Ç–æ—Ä, –∏—Å–ø–æ–ª—å–∑—É–π—Ç–µ –æ–ø–µ—Ä–∞—Ç–æ—Ä " pass " –≤ –∫–∞—á–µ—Å—Ç–≤–µ –∑–∞–ø–æ–ª–Ω–∏—Ç–µ–ª—è. –†–∞—Å—Å–º–æ—Ç—Ä–∏–º —ç—Ç–æ—Ç –∫–æ–¥:

–≠—Ç–æ—Ç –∫–æ–¥ –Ω–µ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç –∑–Ω–∞—á–µ–Ω–∏–π. –£ –Ω–∞—Å –µ—Å—Ç—å def –≤—ã–ø–æ–ª–Ω–∏–ª —Ü–∏–∫–ª, –Ω–æ " pass " –æ–ø–µ—Ä–∞—Ç–æ—Ä —Å–æ–æ–±—â–∞–µ—Ç –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º–µ, —á—Ç–æ —Ü–∏–∫–ª –ø–æ–∫–∞ –Ω–µ –¥–æ–ª–∂–µ–Ω –Ω–∏—á–µ–≥–æ –¥–µ–ª–∞—Ç—å. –≠—Ç–æ –∫–ª—é—á–µ–≤–æ–µ —Å–ª–æ–≤–æ —á–∞—Å—Ç–æ –∏—Å–ø–æ–ª—å–∑—É–µ—Ç—Å—è, –∫–æ–≥–¥–∞ —Ä–∞–∑—Ä–∞–±–æ—Ç—á–∏–∫–∏ —Å–æ–∑–¥–∞—é—Ç —Å—Ç—Ä—É–∫—Ç—É—Ä—É –ø—Ä–æ–≥—Ä–∞–º–º—ã. –ö–∞–∫ —Ç–æ–ª—å–∫–æ —Å—Ç—Ä—É–∫—Ç—É—Ä–∞ –ø—Ä–æ–≥—Ä–∞–º–º—ã –æ–ø—Ä–µ–¥–µ–ª–µ–Ω–∞, " pass " –æ–ø–µ—Ä–∞—Ç–æ—Ä—ã –∑–∞–º–µ–Ω—è—é—Ç—Å—è —Å–æ–æ—Ç–≤–µ—Ç—Å—Ç–≤—É—é—â–∏–º –∫–æ–¥–æ–º.

–ü—Ä–∏–º–µ—Ä ‚Ññ 2: –ù–µ–∑–∞–∫—Ä—ã—Ç—ã–µ –∫—Ä—É–≥–ª—ã–µ —Å–∫–æ–±–∫–∏

" –Ω–µ–ø—Ä–µ–¥–≤–∏–¥–µ–Ω–Ω—ã–π EOF –≤–æ –≤—Ä–µ–º—è —Å–∏–Ω—Ç–∞–∫—Å–∏—á–µ—Å–∫–æ–≥–æ –∞–Ω–∞–ª–∏–∑–∞ " –æ—à–∏–±–∫–∞ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –∫–æ–≥–¥–∞ –≤—ã –∑–∞–±—ã–≤–∞–µ—Ç–µ –∑–∞–∫—Ä—ã—Ç—å –≤—Å–µ –∫—Ä—É–≥–ª—ã–µ —Å–∫–æ–±–∫–∏ –≤ —Å—Ç—Ä–æ–∫–µ –∫–æ–¥–∞.

–ù–∞–ø–∏—à–∏—Ç–µ –ø—Ä–æ–≥—Ä–∞–º–º—É, –∫–æ—Ç–æ—Ä–∞—è –≤—ã–≤–æ–¥–∏—Ç –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏—é –æ —Ä–µ—Ü–µ–ø—Ç–µ –Ω–∞ –∫–æ–Ω—Å–æ–ª—å. –ù–∞—á–Ω–∏—Ç–µ —Å –æ–ø—Ä–µ–¥–µ–ª–µ–Ω–∏—è –Ω–µ—Å–∫–æ–ª—å–∫–∏—Ö –ø–µ—Ä–µ–º–µ–Ω–Ω—ã—Ö —Å –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏–µ–π –æ —Ä–µ—Ü–µ–ø—Ç–µ:

–ú—ã —Ñ–æ—Ä–º–∞—Ç–∏—Ä—É–µ–º —ç—Ç–æ –≤ —Å—Ç—Ä–æ–∫—É —Å –ø–æ–º–æ—â—å—é –º–µ—Ç–æ–¥–∞ .format ():

–ó–Ω–∞—á–µ–Ω–∏—è {} –∑–∞–º–µ–Ω—è—é—Ç—Å—è —Å–æ–æ—Ç–≤–µ—Ç—Å—Ç–≤—É—é—â–∏–º–∏ –∑–Ω–∞—á–µ–Ω–∏—è–º–∏ –≤ –∏–Ω—Å—Ç—Ä—É–∫—Ü–∏–∏ .format (). –≠—Ç–æ –æ–∑–Ω–∞—á–∞–µ—Ç, —á—Ç–æ –≤ –Ω–∞—à–µ–π —Å—Ç—Ä–æ–∫–µ –±—É–¥–µ—Ç —Å–∫–∞–∑–∞–Ω–æ:

–ó–∞–ø—É—Å—Ç–∏–º –Ω–∞—à –∫–æ–¥:

–ù–∞ –Ω–∞—à–µ–º print (), –º—ã –∑–∞–∫—Ä—ã–≤–∞–µ–º —Ç–æ–ª—å–∫–æ –æ–¥–Ω—É —Å–∫–æ–±–∫—É. –ú—ã h –Ø –æ—Ç–∫—Ä—ã–ª –¥–≤–µ –ø–∞—Ä—ã —Å–∫–æ–±–æ–∫. –°–ª–µ–¥–æ–≤–∞—Ç–µ–ª—å–Ω–æ, –±—ã–ª–∞ –≤–æ–∑–≤—Ä–∞—â–µ–Ω–∞ –æ—à–∏–±–∫–∞. & Nbsp;

–ú—ã —Ä–µ—à–∞–µ–º —ç—Ç—É –ø—Ä–æ–±–ª–µ–º—É, –¥–æ–±–∞–≤–ª—è—è –∑–∞–∫—Ä—ã–≤–∞—é—â—É—é —Å–∫–æ–±–∫—É (") ") –≤ –∫–æ–Ω–µ—Ü —Å—Ç—Ä–æ–∫–∏ –∫–æ–¥–∞ print ():

–≠—Ç–∞ —Å—Ç—Ä–æ–∫–∞ –∫–æ–¥–∞ –∑–∞–∫–∞–Ω—á–∏–≤–∞–µ—Ç—Å—è –¥–≤—É–º—è –∫—Ä—É–≥–ª—ã–º–∏ —Å–∫–æ–±–∫–∞–º–∏ –≤–º–µ—Å—Ç–æ –æ–¥–Ω–æ–π. –¢–µ–ø–µ—Ä—å –≤—Å–µ —Å–∫–æ–±–∫–∏ –∑–∞–∫—Ä—ã—Ç—ã.

–î–∞–≤–∞–π—Ç–µ –ø–æ–ø—Ä–æ–±—É–µ–º —Å–Ω–æ–≤–∞ –∑–∞–ø—É—Å—Ç–∏—Ç—å –Ω–∞—à –∫–æ–¥: < p> –ù–∞—à –∫–æ–¥ —Ä–∞–±–æ—Ç–∞–µ—Ç —É—Å–ø–µ—à–Ω–æ.

"–ö–∞—Ä—å–µ—Ä–Ω–∞—è –∫–∞—Ä–º–∞ –≤–æ—à–ª–∞ –≤ –º–æ—é –∂–∏–∑–Ω—å, –∫–æ–≥–¥–∞ —è –±–æ–ª—å—à–µ –≤—Å–µ–≥–æ –≤ –Ω–µ–π –Ω—É–∂–¥–∞–ª–∞—Å—å, –∏ –±—ã—Å—Ç—Ä–æ –ø–æ–º–æ–≥–ª–∞ –º–Ω–µ –ø—Ä–æ–π—Ç–∏ –∫—É—Ä—Å –æ–±—É—á–µ–Ω–∏—è. –ß–µ—Ä–µ–∑ –¥–≤–∞ –º–µ—Å—è—Ü–∞ –ø–æ—Å–ª–µ –≤—ã–ø—É—Å–∫–∞ —è –Ω–∞—à–ª–∞ —Ä–∞–±–æ—Ç—É —Å–≤–æ–µ–π –º–µ—á—Ç—ã, –∫–æ—Ç–æ—Ä–∞—è —Å–æ–æ—Ç–≤–µ—Ç—Å—Ç–≤–æ–≤–∞–ª–∞ –º–æ–∏–º —Ü–µ–Ω–Ω–æ—Å—Ç—è–º –∏ —Ü–µ–ª—è–º –≤ –∂–∏–∑–Ω–∏! "

–í–µ–Ω–µ—Ä–∞, –∏–Ω–∂–µ–Ω–µ—Ä-–ø—Ä–æ–≥—Ä–∞–º–º–∏—Å—Ç –≤ Rockbot

< p> –≠—Ç–∞ –∂–µ –æ—à–∏–±–∫–∞ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –µ—Å–ª–∏ –≤—ã –∑–∞–±—ã–ª–∏ –∑–∞–∫—Ä—ã—Ç—å —Å–ª–æ–≤–∞—Ä—å —Å –ø–æ–º–æ—â—å—é —Å–∫–æ–±–æ–∫ {}. –í—ã —Ç–∞–∫–∂–µ —Å—Ç–æ–ª–∫–Ω–µ—Ç–µ—Å—å —Å —ç—Ç–æ–π –æ—à–∏–±–∫–æ–π, –µ—Å–ª–∏ –∑–∞–±—É–¥–µ—Ç–µ –∑–∞–∫—Ä—ã—Ç—å —Å–ø–∏—Å–æ–∫ —Å –ø–æ–º–æ—â—å—é —Å–∫–æ–±–æ–∫ [].

–ó–∞–∫–ª—é—á–µ–Ω–∏–µ

< p> –û—à–∏–±–∫–∞ " SyntaxError: –Ω–µ–æ–∂–∏–¥–∞–Ω–Ω—ã–π EOF –ø—Ä–∏ —Å–∏–Ω—Ç–∞–∫—Å–∏—á–µ—Å–∫–æ–º –∞–Ω–∞–ª–∏–∑–µ " –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –∫–æ–≥–¥–∞ –∏–Ω—Ç–µ—Ä–ø—Ä–µ—Ç–∞—Ç–æ—Ä Python –¥–æ—Å—Ç–∏–≥–∞–µ—Ç –∫–æ–Ω—Ü–∞ –ø—Ä–æ–≥—Ä–∞–º–º—ã –¥–æ —Ç–æ–≥–æ, –∫–∞–∫ –±—É–¥–µ—Ç –≤—ã–ø–æ–ª–Ω–µ–Ω–∞ –∫–∞–∂–¥–∞—è —Å—Ç—Ä–æ–∫–∞ –∫–æ–¥–∞.

–ß—Ç–æ–±—ã —Ä–µ—à–∏—Ç—å —ç—Ç—É –æ—à–∏–±–∫—É, —Å–Ω–∞—á–∞–ª–∞ —É–±–µ–¥–∏—Ç–µ—Å—å, —á—Ç–æ –∫–∞–∂–¥—ã–π –æ–ø–µ—Ä–∞—Ç–æ—Ä if, —Ü–∏–∫–ª for, —Ü–∏–∫–ª while –∏ —Ñ—É–Ω–∫—Ü–∏—è —Å–æ–¥–µ—Ä–∂–∞—Ç –∫–æ–¥. –í–æ-–≤—Ç–æ—Ä—ã—Ö, —É–±–µ–¥–∏—Ç–µ—Å—å, —á—Ç–æ –≤—ã –∑–∞–∫—Ä—ã–ª–∏ –≤—Å–µ –∫—Ä—É–≥–ª—ã–µ —Å–∫–æ–±–∫–∏ –≤ —Å–≤–æ–µ–º –∫–æ–¥–µ.

–¢–µ–ø–µ—Ä—å –≤—ã –≥–æ—Ç–æ–≤—ã —á—Ç–æ–±—ã —Ä–µ—à–∏—Ç—å —ç—Ç—É —Å–∏–Ω—Ç–∞–∫—Å–∏—á–µ—Å–∫—É—é –æ—à–∏–±–∫—É –∫–∞–∫ –ø—Ä–æ—Ñ–µ—Å—Å–∏–æ–Ω–∞–ª Python !