
July 29th, 2012, 06:28 AM
|
|
Contributing User
|
|
Join Date: Jul 2012
Posts: 39
Time spent in forums: 10 h 49 m 43 sec
Reputation Power: 1
|
|
I think the answer you are looking for is use a comma to separate the text and and the value on the print line. For example
Code:
print "Total count of ones are:", sone
print "---"
print "Total 2's that show up are:", stwo
print "---"
print "Total number of 1's and 2's used is :", total
PS You don't need the import line in the loop; move it to the top. You are actually calling import random 200 times; Python will know it has already imported it before and skip the last 199 requests.
|