The document provides instructions for creating a basic Python program with multiple lines and user input. It explains how to open a new window, write print statements to output text, use an input function to pause the program and wait for user input before closing, and run the program by pressing F5 which will display the print outputs and wait for enter to be pressed before finishing.
1 of 5
Download to read offline
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.