Hi all,:'( his for over a week now i cant get my head round it so i hope some one can help me...
i have a dictionary which reads my file line by line and counts the occurance of tuples ...ok great.
then for every key in my dictionary (which =my tuples from line)
i must take a random sample and print the randomly selected lines????
confused??
ok hope not but my problem is how to i make a link for lines and my dictionary
for example
{(4, 22, 5): 300}
if i wanted to print the randomly 100 of the total 300 counted lines how would i do this?
i tied to use array and find my tuples back in my lines but i keep getting an error
PLEASE SOME ONE HELP PLEASE.... thanks for reading this