SlideShare une entreprise Scribd logo
1  sur  5
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.

Contenu connexe

Tendances (11)

Cara flashing axioo
Cara flashing axiooCara flashing axioo
Cara flashing axioo
 
Golang
GolangGolang
Golang
 
Fix Google Chrome Crashes
Fix Google Chrome CrashesFix Google Chrome Crashes
Fix Google Chrome Crashes
 
04 09-2018--clone vm
04 09-2018--clone vm04 09-2018--clone vm
04 09-2018--clone vm
 
Instalasi firefox di komputer
Instalasi firefox di komputerInstalasi firefox di komputer
Instalasi firefox di komputer
 
Slide Share
Slide ShareSlide Share
Slide Share
 
Hot Potatoes Add Audio
Hot Potatoes Add AudioHot Potatoes Add Audio
Hot Potatoes Add Audio
 
Hot Potatoes Cloze Text Entry
Hot Potatoes Cloze Text EntryHot Potatoes Cloze Text Entry
Hot Potatoes Cloze Text Entry
 
ClusterDesktop how-to use the site
ClusterDesktop how-to use the siteClusterDesktop how-to use the site
ClusterDesktop how-to use the site
 
How do I update the crawford slackware box so that it is running the most up ...
How do I update the crawford slackware box so that it is running the most up ...How do I update the crawford slackware box so that it is running the most up ...
How do I update the crawford slackware box so that it is running the most up ...
 
My First Android Application
My First Android ApplicationMy First Android Application
My First Android Application
 

En vedette (11)

Programming Challenge
Programming ChallengeProgramming Challenge
Programming Challenge
 
Add behaviours lesson2
Add behaviours lesson2Add behaviours lesson2
Add behaviours lesson2
 
Lesson 4 Part 1
Lesson 4 Part 1Lesson 4 Part 1
Lesson 4 Part 1
 
Photoshop Lesson 4
Photoshop Lesson 4Photoshop Lesson 4
Photoshop Lesson 4
 
Photoshop Lesson 6
Photoshop Lesson 6Photoshop Lesson 6
Photoshop Lesson 6
 
Photoshop lesson 2
Photoshop lesson 2Photoshop lesson 2
Photoshop lesson 2
 
Photoshop Lesson 7
Photoshop Lesson 7Photoshop Lesson 7
Photoshop Lesson 7
 
Photoshop Lesson 5
Photoshop Lesson 5Photoshop Lesson 5
Photoshop Lesson 5
 
Photoshop Lesson 3
Photoshop Lesson 3Photoshop Lesson 3
Photoshop Lesson 3
 
Part 5 – animating your character
Part 5 – animating your characterPart 5 – animating your character
Part 5 – animating your character
 
Photoshop lesson 1
Photoshop lesson 1Photoshop lesson 1
Photoshop lesson 1
 

Plus de Andrew Willetts

Photoshop tutorial 2 rubber and quick select tools
Photoshop tutorial 2   rubber and quick select toolsPhotoshop tutorial 2   rubber and quick select tools
Photoshop tutorial 2 rubber and quick select tools
Andrew Willetts
 
Photoshop tutorial 1 setting up the canvas
Photoshop tutorial 1   setting up the canvasPhotoshop tutorial 1   setting up the canvas
Photoshop tutorial 1 setting up the canvas
Andrew Willetts
 
Alice part 2 – background objects
Alice part 2 – background objectsAlice part 2 – background objects
Alice part 2 – background objects
Andrew Willetts
 
Alice part 1 – getting started Update
Alice part 1 – getting started UpdateAlice part 1 – getting started Update
Alice part 1 – getting started Update
Andrew Willetts
 
Alice part 3 – adding text
Alice part 3 – adding textAlice part 3 – adding text
Alice part 3 – adding text
Andrew Willetts
 
Alice part 1 – getting started
Alice part 1 – getting startedAlice part 1 – getting started
Alice part 1 – getting started
Andrew Willetts
 

Plus de Andrew Willetts (20)

Photoshop tutorial 6 desaturisation
Photoshop tutorial 6   desaturisationPhotoshop tutorial 6   desaturisation
Photoshop tutorial 6 desaturisation
 
Photoshop tutorial 5 clipping masks
Photoshop tutorial 5   clipping masksPhotoshop tutorial 5   clipping masks
Photoshop tutorial 5 clipping masks
 
Photoshop tutorial 4 spot healing tool
Photoshop tutorial 4   spot healing toolPhotoshop tutorial 4   spot healing tool
Photoshop tutorial 4 spot healing tool
 
Photoshop tutorial 3 stamp tool
Photoshop tutorial 3   stamp toolPhotoshop tutorial 3   stamp tool
Photoshop tutorial 3 stamp tool
 
Year 8 python part 1 - debugging
Year 8 python part 1 - debuggingYear 8 python part 1 - debugging
Year 8 python part 1 - debugging
 
Year 8 python part 1 - debugging
Year 8 python part 1 - debuggingYear 8 python part 1 - debugging
Year 8 python part 1 - debugging
 
Year 7 e-safety part 2
Year 7   e-safety part 2Year 7   e-safety part 2
Year 7 e-safety part 2
 
Year 7 e-safety part 1
Year 7   e-safety part 1Year 7   e-safety part 1
Year 7 e-safety part 1
 
Photoshop tutorial 2 rubber and quick select tools
Photoshop tutorial 2   rubber and quick select toolsPhotoshop tutorial 2   rubber and quick select tools
Photoshop tutorial 2 rubber and quick select tools
 
Photoshop tutorial 1 setting up the canvas
Photoshop tutorial 1   setting up the canvasPhotoshop tutorial 1   setting up the canvas
Photoshop tutorial 1 setting up the canvas
 
03 outputs
03   outputs03   outputs
03 outputs
 
inputs
inputsinputs
inputs
 
Computer Devices - What Are they?
Computer Devices - What Are they?Computer Devices - What Are they?
Computer Devices - What Are they?
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
Databases dfd
Databases dfdDatabases dfd
Databases dfd
 
Data flow diagrams
Data flow diagramsData flow diagrams
Data flow diagrams
 
Alice part 2 – background objects
Alice part 2 – background objectsAlice part 2 – background objects
Alice part 2 – background objects
 
Alice part 1 – getting started Update
Alice part 1 – getting started UpdateAlice part 1 – getting started Update
Alice part 1 – getting started Update
 
Alice part 3 – adding text
Alice part 3 – adding textAlice part 3 – adding text
Alice part 3 – adding text
 
Alice part 1 – getting started
Alice part 1 – getting startedAlice part 1 – getting started
Alice part 1 – getting started
 

Dernier

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Programming Adding Interupts

  • 1.
  • 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.