import time
from yahoo_finance import Share

# Collect 30 mins of Finance data on 5 companies, one value per minute
nyt = Share('NYT')
ibm = Share('IBM')
google = Share('GOOG')
facebook = Share('FB')
linkedin = Share('LNKD')

for minute in range(30):
	print "%s minutes" % minute
	nyt.refresh()
	print "The New York Times' stock price is $%s" % nyt.get_price()
	ibm.refresh()
	print "IBM's stock price is $%s" % ibm.get_price()
	google.refresh()
	print "Google's stock price is $%s" % google.get_price()
	facebook.refresh()
	print "Facebook's stock price is $%s" % facebook.get_price()
	linkedin.refresh()
	print "Linkedin's stock price is $%s" % linkedin.get_price()
	time.sleep(60)


@@ -109,16 +109,43 @@
  minute%0A
+%0Afor minute in range(30):%0A%09
 nyt = Sh
@@ -155,16 +155,17 @@
 ('NYT')%0A
+%09
 ibm = Sh
@@ -175,16 +175,17 @@
 ('IBM')%0A
+%09
 google =
@@ -199,16 +199,17 @@
 'GOOG')%0A
+%09
 facebook
@@ -223,16 +223,17 @@
 e('FB')%0A
+%09
 linkedin
@@ -253,33 +253,9 @@
 D')%0A
-%0Afor minute in range(30):
+%09
 %0A%09pr
@@ -284,23 +284,8 @@
 ute%0A
-%09nyt.refresh()%0A
 %09pri
@@ -350,23 +350,8 @@
 e()%0A
-%09ibm.refresh()%0A
 %09pri
@@ -402,26 +402,8 @@
 e()%0A
-%09google.refresh()%0A
 %09pri
@@ -460,28 +460,8 @@
 e()%0A
-%09facebook.refresh()%0A
 %09pri
@@ -522,28 +522,8 @@
 e()%0A
-%09linkedin.refresh()%0A
 %09pri

Remove need for refresh() by putting everything in loop