How to get a random number in python?
Answer / Jayvardhan Singh
In Python, you can use the `random` module's `randint()` function to generate a random integer within a specific range. For example: `import random; print(random.randint(1, 10))`
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you remove the whitespaces from the string “aaa bbb ccc ddd eee”?
How do I run python on linux?
Is real python free?
What is the use of isupper keyword in python?
What is the difference between Python and PHP?
How lists is differentiated from tuples?
Tell me what is negative index in python?
What are the differences between the threading and multiprocessing in python?
What is deep copy in python?
How can I make a time delay in python?
What is python api?
What are the types of inheritance in python?