[Tutor] Tuple/Dict

Alan Gauld alan.gauld at yahoo.co.uk
Sat Dec 7 14:40:00 EST 2019


On 07/12/2019 13:05, Reborn0fDarkness wrote:
> Hi! i have a test where i have to ask the person a number, and then do his
> divisers, make them into an tuple, add the tuple into a dict and then show
> the dict, and im losing my mind, any help?

Which parts are giving you problems?
Show us your code.
Show us any error messages.
Show us a sample user session
- what does the computer ask?
- What does the user type?
- What does the computer respond with?

What does "do his divisers" mean?
Find all of them? Just the primes? The biggest?

Tell us your Python version and OS too.

Without that kind of information we are only making wild guesses.
And we won't do your "test" for you...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list