'Edit Python script in Notepad++ and run it in Python Shell

I love Notepad++ to edit my Python code. But I want to run my scripts in Python Shell. How can I do it?

A piece of script:

enter image description here

Expected result of running script from Notepad++:

enter image description here



Solution 1:[1]

File->Open->Choose File->In navbar, press run or f5

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Samuel Simon