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?
Gaven 0 Newbie Poster
ZZucker 342 Practically a Master Poster
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
ZZucker 342 Practically a Master Poster
ZZucker 342 Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.