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

Ruchir Shukla ruchiryshukla at gmail.com
Fri Apr 5 10:39:15 CEST 2013


Hello !

I did not get the Answer for how . can you explain the Answer ?


On Fri, Apr 5, 2013 at 12:16 PM, 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
>



-- 
----------------------------
Kind regards

Ruchir Shukla

Phone: +91 9099020687
ruchiryshukla at gmail.com; Ruchir Shukla <http://ruchir-shukla.blogspot.com/>


More information about the BangPypers mailing list