View Single Post
  #6  
Old 07-18-2014, 02:28 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The while True line always evaluates to True so the loop keeps repeating. To run that code a set number of times you could use a for loop or have an expression following while that evaluates to False after several loops. Try replacing:

Code:
while True
with:

Code:
for i in range(1,5):
	
	print 'start trial {}'.format(i)
Reply With Quote