際際滷

際際滷Share a Scribd company logo
Programming Adding Interupts
MAKING A PROGRAM THAT IS LONGER THAN A LINE
On the Python
Shell go to File
and then New
Window. This will
bring up a blank
page.
MAKING A PROGRAM WITH AN INPUT
In the blank window that opens type in the following.
print("Hello")
print("My name is Python")
input("Please press enter to exit")
RUNNING YOUR PROGRAM
To run your program press F5 on the
keyboard, you will then see the following
Click OK you may see the following click OK on this and then you can
save the file in your folders, once you have done this your file will run
in the shell..
WHAT OUTPUT SHOULD YOU SEE
If you press the
enter key the
program will
end and you
have
successfully set
up an input in
your program.

More Related Content

Programming Adding Interupts

  • 2. MAKING A PROGRAM THAT IS LONGER THAN A LINE On the Python Shell go to File and then New Window. This will bring up a blank page.
  • 3. MAKING A PROGRAM WITH AN INPUT In the blank window that opens type in the following. print("Hello") print("My name is Python") input("Please press enter to exit")
  • 4. RUNNING YOUR PROGRAM To run your program press F5 on the keyboard, you will then see the following Click OK you may see the following click OK on this and then you can save the file in your folders, once you have done this your file will run in the shell..
  • 5. WHAT OUTPUT SHOULD YOU SEE If you press the enter key the program will end and you have successfully set up an input in your program.