Python Developer Question:

How to generate random numbers in Python?

Answer:

To generate random numbers in Python, you need to import command as

import random

random.random()

This returns a random floating point number in the range [0,1)

Read All 77 Python Developer Questions
Previous QuestionNext Question
Tell me what is negative index in Python?Suppose ou are having multiple Memcache servers running Python, in which one of the memcacher server fails, and it has your data, will it ever try to get key data from that one failed server?