By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,994 Members | 1,166 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,994 IT Pros & Developers. It's quick & easy.

How do I rerun a progrom outside the shell?

P: 39
I wrote a very basic program to calculate the slope of a pipe

Expand|Select|Wrap|Line Numbers
  1. firstElev = input ("Enter first elevation")
  2. secondElev = input ("Enter second elevation")
  3. length = input ("Enter Length")
  5. promil = ((firstElev - secondElev)/length)*1000
  7. print "Promil =",promil
Currently I run the program in the python shell and have to run it every time I need it to calculate the slope.
This can be tedious when I have many slopes to calculate.
How can I:
1. Have the program run outside the shell in it's own window
2. Have the program keep running until I type something like 'quit'?
Dec 21 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.