Python TypeError: объект «NoneType» не повторяется Решение

–í Python –≤—ã –º–æ–∂–µ—Ç–µ –≤—ã–ø–æ–ª–Ω—è—Ç—å –∏—Ç–µ—Ä–∞—Ü–∏—é –ø–æ –æ–±—ä–µ–∫—Ç—É, —Ç–æ–ª—å–∫–æ –µ—Å–ª–∏ —ç—Ç–æ—Ç –æ–±—ä–µ–∫—Ç –∏–º–µ–µ—Ç –∑–Ω–∞—á–µ–Ω–∏–µ. –≠—Ç–æ —Å–≤—è–∑–∞–Ω–æ —Å —Ç–µ–º, —á—Ç–æ –∏—Ç–µ—Ä–∏—Ä—É–µ–º—ã–µ –æ–±—ä–µ–∫—Ç—ã –∏–º–µ—é—Ç —Ç–æ–ª—å–∫–æ —Å–ª–µ–¥—É—é—â–∏–π —ç–ª–µ–º–µ–Ω—Ç, –∫ –∫–æ—Ç–æ—Ä–æ–º—É –º–æ–∂–Ω–æ –ø–æ–ª—É—á–∏—Ç—å –¥–æ—Å—Ç—É–ø, –µ—Å–ª–∏ –∏—Ö –∑–Ω–∞—á–µ–Ω–∏–µ –Ω–µ —Ä–∞–≤–Ω–æ None. –ï—Å–ª–∏ –≤—ã –ø–æ–ø—ã—Ç–∞–µ—Ç–µ—Å—å –ø–µ—Ä–µ–±—Ä–∞—Ç—å –æ–±—ä–µ–∫—Ç None, –≤—ã —Å—Ç–æ–ª–∫–Ω–µ—Ç–µ—Å—å —Å –æ—à–∏–±–∫–æ–π TypeError: " NoneType " –æ–±—ä–µ–∫—Ç –Ω–µ –ø–æ–≤—Ç–æ—Ä—è–µ—Ç—Å—è –æ—à–∏–±–∫–∞.

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

TypeError: " NoneType " –æ–±—ä–µ–∫—Ç –Ω–µ —è–≤–ª—è–µ—Ç—Å—è –∏—Ç–µ—Ä–∏—Ä—É–µ–º—ã–º

–ß—Ç–æ–±—ã –æ–±—ä–µ–∫—Ç –±—ã–ª –∏—Ç–µ—Ä–∏—Ä—É–µ–º—ã–º , –æ–Ω –¥–æ–ª–∂–µ–Ω —Å–æ–¥–µ—Ä–∂–∞—Ç—å –∑–Ω–∞—á–µ–Ω–∏–µ. –ó–Ω–∞—á–µ–Ω–∏–µ None –Ω–µ –º–æ–∂–µ—Ç –±—ã—Ç—å –ø–æ–≤—Ç–æ—Ä–µ–Ω–æ, –ø–æ—Ç–æ–º—É —á—Ç–æ –æ–Ω–æ –Ω–µ —Å–æ–¥–µ—Ä–∂–∏—Ç –Ω–∏–∫–∞–∫–∏—Ö –æ–±—ä–µ–∫—Ç–æ–≤. None –ø—Ä–µ–¥—Å—Ç–∞–≤–ª—è–µ—Ç —Å–æ–±–æ–π –Ω—É–ª–µ–≤–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ.

–°—É—â–µ—Å—Ç–≤—É–µ—Ç —Ä–∞–∑–Ω–∏—Ü–∞ –º–µ–∂–¥—É –æ–±—ä–µ–∫—Ç–æ–º None –∏ –ø—É—Å—Ç—ã–º –∏—Ç–µ—Ä–∏—Ä—É–µ–º—ã–º –æ–±—ä–µ–∫—Ç–æ–º. –≠—Ç–∞ –æ—à–∏–±–∫–∞ –Ω–µ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –µ—Å–ª–∏ —É –≤–∞—Å –µ—Å—Ç—å –ø—É—Å—Ç–æ–π —Å–ø–∏—Å–æ–∫ –∏–ª–∏ —Å—Ç—Ä–æ–∫–∞.

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

–≠—Ç–∞ –æ—à–∏–±–∫–∞ —á–∞—Å—Ç–æ –≤—Å—Ç—Ä–µ—á–∞–µ—Ç—Å—è, –∫–æ–≥–¥–∞ –≤—ã –æ–±—ä—è–≤–ª—è–µ—Ç–µ —Ñ—É–Ω–∫—Ü–∏—é –∏ –∑–∞–±—ã–≤–∞–µ—Ç–µ –≤–µ—Ä–Ω—É—Ç—å –∑–Ω–∞—á–µ–Ω–∏–µ.

–ü—Ä–∏–º–µ—Ä —Å—Ü–µ–Ω–∞—Ä–∏—è

–î–∞–≤–∞–π—Ç–µ –Ω–∞–ø–∏—à–µ–º –ø—Ä–æ–≥—Ä–∞–º–º—É, –∫–æ—Ç–æ—Ä–∞—è –±–µ—Ä–µ—Ç —Å–ø–∏—Å–æ–∫ –∏–º–µ–Ω —É—á–∞—â–∏—Ö—Å—è –∏ –æ—Ç—Ñ–∏–ª—å—Ç—Ä–æ–≤—ã–≤–∞–µ—Ç —Ç–µ, –∫–æ—Ç–æ—Ä—ã–µ –Ω–∞—á–∏–Ω–∞—é—Ç—Å—è —Å " E & rdquo ;. –ú—ã –Ω–∞–ø–µ—á–∞—Ç–∞–µ–º —ç—Ç–∏ –∑–Ω–∞—á–µ–Ω–∏—è –Ω–∞ –∫–æ–Ω—Å–æ–ª–∏.

–ù–∞—á–Ω–µ–º —Å –æ–ø—Ä–µ–¥–µ–ª–µ–Ω–∏—è —Ñ—É–Ω–∫—Ü–∏–∏ , –∫–æ—Ç–æ—Ä–∞—è –æ—Ç—Ñ–∏–ª—å—Ç—Ä–æ–≤—ã–≤–∞–µ—Ç —É—á–∞—â–∏—Ö—Å—è " names:

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

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

–≠—Ç–∞ —Ñ—É–Ω–∫—Ü–∏—è –ø—Ä–æ—Å–º–∞—Ç—Ä–∏–≤–∞–µ—Ç –∫–∞–∂–¥—ã–π —ç–ª–µ–º–µ–Ω—Ç –≤ —Ü–∏–∫–ª–µ. –≤ " class_names " —Å–ø–∏—Å–æ–∫ —Å –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏–µ–º —Ü–∏–∫–ª–∞ for. –î–ª—è –∫–∞–∂–¥–æ–≥–æ —ç–ª–µ–º–µ–Ω—Ç–∞ –Ω–∞—à —Ü–∏–∫–ª –ø—Ä–æ–≤–µ—Ä—è–µ—Ç, –Ω–∞—á–∏–Ω–∞–µ—Ç—Å—è –ª–∏ —ç–ª–µ–º–µ–Ω—Ç —Å –±—É–∫–≤—ã " E & rdquo ;. –ï—Å–ª–∏ —ç—Ç–æ —Ç–∞–∫, —ç—Ç–æ –∏–º—è –¥–æ–±–∞–≤–ª—è–µ—Ç—Å—è –≤ " new_class_names " —Å–ø–∏—Å–æ–∫.

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

–ó–¥–µ—Å—å –º—ã –æ–±—ä—è–≤–ª—è–µ–º —Å–ø–∏—Å–æ–∫ —Å—Ç—É–¥–µ–Ω—Ç–æ–≤ —á–µ—Ä–µ–∑ –∫–æ—Ç–æ—Ä—É—é –Ω–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –¥–æ–ª–∂–Ω–∞ –∏—Å–∫–∞—Ç—å. –ú—ã –ø–µ—Ä–µ–¥–∞–µ–º —ç—Ç–æ—Ç —Å–ø–∏—Å–æ–∫ —Å—Ç—É–¥–µ–Ω—Ç–æ–≤ —á–µ—Ä–µ–∑ –Ω–∞—à—É —Ñ—É–Ω–∫—Ü–∏—é filter_students:

–≠—Ç–æ—Ç –∫–æ–¥ –≤—ã–ø–æ–ª–Ω—è–µ—Ç —Ñ—É–Ω–∫—Ü–∏—é filter_students, –∫–æ—Ç–æ—Ä–∞—è –Ω–∞—Ö–æ–¥–∏—Ç –≤—Å–µ—Ö —Å—Ç—É–¥–µ–Ω—Ç–æ–≤, —á—å–∏ –∏–º–µ–Ω–∞ –Ω–∞—á–∏–Ω–∞—é—Ç—Å—è —Å " E & rdquo ;. –°–ø–∏—Å–æ–∫ —Å—Ç—É–¥–µ–Ω—Ç–æ–≤, –∏–º–µ–Ω–∞ –∫–æ—Ç–æ—Ä—ã—Ö –Ω–∞—á–∏–Ω–∞—é—Ç—Å—è —Å " E ", –Ω–∞–∑—ã–≤–∞–µ—Ç—Å—è student_e_name. –ó–∞—Ç–µ–º –º—ã –≤—ã–∑—ã–≤–∞–µ–º –Ω–∞—à—É —Ñ—É–Ω–∫—Ü–∏—é show_students, —á—Ç–æ–±—ã –ø–æ–∫–∞–∑–∞—Ç—å –Ω–æ–≤—ã–π —Å–ø–∏—Å–æ–∫ —Å—Ç—É–¥–µ–Ω—Ç–æ–≤:

–î–∞–≤–∞–π—Ç–µ –∑–∞–ø—É—Å—Ç–∏–º –Ω–∞—à –∫–æ–¥ –∏ –ø–æ—Å–º–æ—Ç—Ä–∏–º, —á—Ç–æ –ø—Ä–æ–∏–∑–æ–π–¥–µ—Ç:

–ù–∞—à –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç —Å–æ–æ–±—â–µ–Ω–∏–µ –æ–± –æ—à–∏–±–∫–µ.

–†–µ—à–µ–Ω–∏–µ

–ö–æ–≥–¥–∞ –º—ã –ø—ã—Ç–∞–µ–º—Å—è –ø–µ—Ä–µ–±—Ä–∞—Ç—å –ø–µ—Ä–µ–º–µ–Ω–Ω—É—é class_names –≤ show_students, –Ω–∞—à –∫–æ–¥ –æ–±–Ω–∞—Ä—É–∂–∏–≤–∞–µ—Ç –∑–Ω–∞—á–µ–Ω–∏–µ None –∏ –≤—ã–∑—ã–≤–∞–µ—Ç –æ—à–∏–±–∫—É. –≠—Ç–æ –ø–æ—Ç–æ–º—É, —á—Ç–æ –∑–Ω–∞—á–µ–Ω–∏–µ, –∫–æ—Ç–æ—Ä–æ–µ –º—ã –ø–µ—Ä–µ–¥–∞–ª–∏ –∫–∞–∫ " class_names " —Ä–∞–≤–Ω–æ None.

–≠—Ç–∞ –æ—à–∏–±–∫–∞ –≤—ã–∑–≤–∞–Ω–∞ —Ç–µ–º, —á—Ç–æ –Ω–∞—à–∞ —Ñ—É–Ω–∫—Ü–∏—è filter_students –Ω–µ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç –∑–Ω–∞—á–µ–Ω–∏–µ. –ö–æ–≥–¥–∞ –º—ã –ø—Ä–∏—Å–≤–∞–∏–≤–∞–µ–º —Ä–µ–∑—É–ª—å—Ç–∞—Ç —Ñ—É–Ω–∫—Ü–∏–∏ filter_students –ø–µ—Ä–µ–º–µ–Ω–Ω–æ–π student_e_name, —É—Å—Ç–∞–Ω–∞–≤–ª–∏–≤–∞–µ—Ç—Å—è –∑–Ω–∞—á–µ–Ω–∏–µ None.

–ß—Ç–æ–±—ã —Ä–µ—à–∏—Ç—å —ç—Ç—É –æ—à–∏–±–∫—É, –º—ã –¥–æ–ª–∂–Ω—ã –≤–µ—Ä–Ω—É—Ç—å –∑–Ω–∞—á–µ–Ω–∏–µ –≤ –Ω–∞—à–µ–π —Ñ—É–Ω–∫—Ü–∏–∏ filter_students :

–≠—Ç–æ—Ç –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç –∑–Ω–∞—á–µ–Ω–∏–µ new_class_names –æ–±—Ä–∞—Ç–Ω–æ –≤ –æ—Å–Ω–æ–≤–Ω—É—é –ø—Ä–æ–≥—Ä–∞–º–º—É. < br>

–î–∞–≤–∞–π—Ç–µ –∑–∞–ø—É—Å—Ç–∏–º –Ω–∞—à –∫–æ–¥ –∏ –ø–æ—Å–º–æ—Ç—Ä–∏–º, —Ä–∞–±–æ—Ç–∞–µ—Ç –ª–∏ –æ–Ω:

–¢–µ–ø–µ—Ä—å –Ω–∞—à –∫–æ–¥ —É—Å–ø–µ—à–Ω–æ –ø–µ—á–∞—Ç–∞–µ—Ç –∏–º–µ–Ω–∞ —Å—Ç—É–¥–µ–Ω—Ç–æ–≤, —á—å–∏ –∏–º–µ–Ω–∞ –Ω–∞—á–∏–Ω–∞—é—Ç—Å—è —Å " E "

–ö–∞–∫ –∏–∑–±–µ–∂–∞—Ç—å –∏—Å–∫–ª—é—á–µ–Ω–∏—è NoneType

–¢–µ—Ö–Ω–∏—á–µ—Å–∫–∏ –≤—ã –º–æ–∂–µ—Ç–µ –∏–∑–±–µ–∂–∞—Ç—å –∏—Å–∫–ª—é—á–µ–Ω–∏—è NoneType, –ø—Ä–æ–≤–µ—Ä–∏–≤, —Ä–∞–≤–Ω–æ –ª–∏ –∑–Ω–∞—á–µ–Ω–∏–µ None –ø–µ—Ä–µ–¥ –ø–æ–≤—Ç–æ—Ä–µ–Ω–∏–µ–º —ç—Ç–æ–≥–æ –∑–Ω–∞—á–µ–Ω–∏—è. –†–∞—Å—Å–º–æ—Ç—Ä–∏–º —Å–ª–µ–¥—É—é—â–∏–π –∫–æ–¥:

–§—É–Ω–∫—Ü–∏—è " show_students () " –≤—ã–ø–æ–ª–Ω—è–µ—Ç—Å—è —É—Å–ø–µ—à–Ω–æ, –ø–æ—Ç–æ–º—É —á—Ç–æ –º—ã –ø—Ä–æ–≤–µ—Ä—å—Ç–µ, —è–≤–ª—è–µ—Ç—Å—è –ª–∏ class_names –∑–Ω–∞—á–µ–Ω–∏–µ–º None, –ø—Ä–µ–∂–¥–µ —á–µ–º –º—ã –ø–æ–ø—ã—Ç–∞–µ–º—Å—è –ø–µ—Ä–µ–±—Ä–∞—Ç—å –µ–≥–æ. –≠—Ç–æ –Ω–µ –ª—É—á—à–∞—è –ø—Ä–∞–∫—Ç–∏–∫–∞. ctice –≤ –±–æ–ª—å—à–∏–Ω—Å—Ç–≤–µ —Å–ª—É—á–∞–µ–≤, –ø–æ—Ç–æ–º—É —á—Ç–æ –ø—Ä–∏—á–∏–Ω–æ–π –æ—à–∏–±–∫–∏ NoneType –º–æ–∂–µ—Ç –±—ã—Ç—å –ø—Ä–æ–±–ª–µ–º–∞ –≥–¥–µ-—Ç–æ –µ—â–µ –≤ –≤–∞—à–µ–º –∫–æ–¥–µ.

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



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

–û—à–∏–±–∫–∞ TypeError: " NoneType " –æ–±—ä–µ–∫—Ç –Ω–µ –ø–æ–≤—Ç–æ—Ä—è–µ—Ç—Å—è –≤–æ–∑–Ω–∏–∫–∞–µ—Ç –æ—à–∏–±–∫–∞, –∫–æ–≥–¥–∞ –≤—ã –ø—ã—Ç–∞–µ—Ç–µ—Å—å –≤—ã–ø–æ–ª–Ω–∏—Ç—å –∏—Ç–µ—Ä–∞—Ü–∏—é –ø–æ –æ–±—ä–µ–∫—Ç—É, –∑–Ω–∞—á–µ–Ω–∏–µ –∫–æ—Ç–æ—Ä–æ–≥–æ —Ä–∞–≤–Ω–æ None.

–ß—Ç–æ–±—ã —É—Å—Ç—Ä–∞–Ω–∏—Ç—å —ç—Ç—É –æ—à–∏–±–∫—É, —É–±–µ–¥–∏—Ç–µ—Å—å, —á—Ç–æ –≤—Å–µ –∑–Ω–∞—á–µ–Ω–∏—è, –∫–æ—Ç–æ—Ä—ã–µ –≤—ã –ø—ã—Ç–∞–µ—Ç–µ—Å—å iterate over –±—ã–ª–∏ –Ω–∞–∑–Ω–∞—á–µ–Ω—ã –∏—Ç–µ—Ä–∏—Ä—É–µ–º—ã–π –æ–±—ä–µ–∫—Ç, –Ω–∞–ø—Ä–∏–º–µ—Ä —Å—Ç—Ä–æ–∫–∞ –∏–ª–∏ —Å–ø–∏—Å–æ–∫. –í –Ω–∞—à–µ–º –ø—Ä–∏–º–µ—Ä–µ –º—ã –∑–∞–±—ã–ª–∏ –¥–æ–±–∞–≤–∏—Ç—å " return " –æ–ø–µ—Ä–∞—Ç–æ—Ä –∫ —Ñ—É–Ω–∫—Ü–∏–∏. –≠—Ç–æ –∑–∞—Å—Ç–∞–≤–∏–ª–æ —Ñ—É–Ω–∫—Ü–∏—é –≤–µ—Ä–Ω—É—Ç—å None –≤–º–µ—Å—Ç–æ —Å–ø–∏—Å–∫–∞.

–¢–µ–ø–µ—Ä—å –≤—ã –≥–æ—Ç–æ–≤—ã —Ä–µ—à–∏—Ç—å —ç—Ç—É —Ä–∞—Å–ø—Ä–æ—Å—Ç—Ä–∞–Ω–µ–Ω–Ω—É—é –æ—à–∏–±–∫—É Python –≤ —Å–≤–æ–µ–º —Å–æ–±—Å—Ç–≤–µ–Ω–Ω–æ–º –∫–æ–¥–µ.

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

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

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

News


Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method