[BangPypers] What is the output of this python program?

Ramchandra Apte maniandram01 at gmail.com
Fri Apr 5 09:50:12 CEST 2013


I suppose it will give Hello World? I've seen a similar question on
StackOverflow.


On 5 April 2013 12:16, Shabda Raaj <shabda at agiliq.com> wrote:

> Something I found interesting. (Please try answering before running in the
> interpretor).
>
> https://gist.github.com/shabda/5317134
>
> --
>
> import random
> import string
>
> def random_word_from_seed(seed, len):
>     random.seed(seed)
>     letters = string.ascii_lowercase
>     return ''.join([random.choice(letters) for i in range(len)])
>
> print random_word_from_seed(1944062, 5) +"
> "+random_word_from_seed(2068527, 5)
>
>
>
> --
> Thanks,
> Shabda
>
> Agiliq.com - Building Amazing Apps
> agiliq.com/blog/ | github.com/agiliq
> US: +13152854388 | IN: +919949997612 | Skype: shabda.raaj
> Our Android Apps <https://play.google.com/store/apps/developer?id=Agiliq>
> | Our
> iOS Apps <https://itunes.apple.com/us/artist/agiliq/id407918088>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list