[Python] Dictionary Generator

Questions about programming languages and debugging
Post Reply
User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

[Python] Dictionary Generator

Post by lilrofl »

Thanks for the inspiration Cats, after the better part of an afternoon I came up with:

http://code.suck-o.com/42377" onclick="window.open(this.href);return false;

I'm sure it's nowhere near as fast as C, and I'm sure the code is a bit over engineered, but it works and I'm happy with it. Also it has the distinction of being the first program I've completed... and that's good after all.
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Re: [Python] Dictionary Generator

Post by maboroshi »

Congratulations lilrofl! Job well done *cheers

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: [Python] Dictionary Generator

Post by ayu »

Nice! :D

Lovely that people are joining in on the coding :D

We should do more stuff like this, and release different versions for people to learn from in different languages ^^
"The best place to hide a tree, is in a forest"

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Re: [Python] Dictionary Generator

Post by lilrofl »

That's a good idea, I've never coded anything to completion really, but I had a good time doing this. After I got it working adding a completed dictionary size estimation and number of entries required that I learn new functions and new math, when it worked it was a good feeling. (although the size estimate would be a bit more accurate if I had used float instead of int )

meh, glad you guys like it :D
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Re: [Python] Dictionary Generator

Post by computathug »

Great job lilrofl *thumb*

This is what life is about, sharing ideas and solutions =D>
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

3SidedSquare
Newbie
Newbie
Posts: 1
Joined: 02 Aug 2011, 13:19
12

Re: [Python] Dictionary Generator

Post by 3SidedSquare »

This is really nice. Have you considered adding a GUI?

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Re: [Python] Dictionary Generator

Post by lilrofl »

Thanks.
I worked this up over an afternoon as a thought experiment in a Linux terminal, so I never really considered adding a GUI... it's such a single purpose script that I could work one up if there's an interest.
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

Post Reply