Beginner Question - Very Easy I'm Sure...
anon at anon.com
Thu Mar 24 22:13:25 CET 2005
I'm trying to generate a random number, and then concetate it to a word to
create a password.
I get the number and assign it to a variable:
word = "dog"
rannum = random.randrange(100,999)
word + rannum
But when I try to concetate the two, I get an error saying:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in -toplevel-
list + rannum
TypeError: unsubscriptable object
More information about the Python-list