I can hardly solve the simplest thing without asking thescripts for help... Must be getting late. If I keep this up, I'll be an admin within the month.
This time, I have a list with six random numbers in it. Since the numbers are random, I don't know at which indexes they are. What I want to do is basically:
[Code=python]
str= ""
str=raw_input(" Random gibberish")
a=[random numbers]
if str in a:
print "Random gibberish"
del str in a # As in "I want the number he just typed to be removed from the list"
[/Code]
Which of course does not work. Python dislikes the "del str in a", of course, and I've been trying various things (basically just typed in english words and prayed) but to no avail. Does anyone have a smart way to do this? Try to keep it simple, mind...
This time, I have a list with six random numbers in it. Since the numbers are random, I don't know at which indexes they are. What I want to do is basically:
[Code=python]
str= ""
str=raw_input(" Random gibberish")
a=[random numbers]
if str in a:
print "Random gibberish"
del str in a # As in "I want the number he just typed to be removed from the list"
[/Code]
Which of course does not work. Python dislikes the "del str in a", of course, and I've been trying various things (basically just typed in english words and prayed) but to no avail. Does anyone have a smart way to do this? Try to keep it simple, mind...
Comment