Hi I would like to use randint from random to get random numbers, and after doing this I would like to add it to Dict or List and check if the number already added and which Postions this an have so it shoudl print out which possition this number have, but the code should add the number to the list even if it is already in a list/dict. So I don't know which i should choice the Dict or List or adding the numbers and which one for the result?
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.