What is random function | How to use it | Python Program

_____=random._______                  #random function

Tips:

1.Import random function from library.
2.Assign it in variable.
3.Print  the variable.

 

Code:

import random

a=random.randint(0,9)

print(a)

Output:

 


Comments

Popular posts from this blog

TOP 10 PROGRAMMING LANGAUAGES COMMING 2021 | ARTICLE

Write a C-program to swap two number:

Print Fibonacci Series using Recursion | C program :