Q. Write a program to randomly generate a number from the range 100-1000 both inclusive and print the generated number as :-
Randomly selected lucky viewer is : < number >
Answer =
import random print ("Randomly selected lucky viewer is : ", random.randrange (100,1000))
Output :-
Randomly selected lucky viewer is : 725
>>>
Randomly selected lucky viewer is : 861
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )