Python Course :- Python Random Modules and Built in Function

This is a Python Course Firstly we discuss the ’Python Modules and Functions’ which analogy to:- • Random Module:- o Random functions for integers  randint()  randrange() o Random functions for sequence  Choice(rnlist)  shuffle()  Sample() o Random functions for floats  random()  Uniform(start, end)  Tombola game • Number must be interger • Ranges from 1 to 100 • Non-repeatable  OTP generator • OTP must contain the numbers and letters • OTP length should be 6 • Python special functions:- o Lambda()  lambda can take any number of arguments and retuens only one expression o filter() o map() o reduce() o isinstance() o eval() o repr()
Back to Top