The other option is ...
import random
list1 = ["1", "2", "3"]
string1 = random.choice(list1)
string2 = """\
Random Number is
%s""" % string1
print(string2)
... this makes the output more visual in your code.
Reputation Points: 1333
Solved Threads: 1404
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004