use built in modules in python

technical talkiess
0

 # python inbuild modules 


import random


random_number = random.random()

# print(random_number)


l1 = ['asd','werwer','aasdad','asdasdas','asdasd','asdadad']

# print(random.choice(l1))




# task 

import platform


x = platform.system()

# print(x)


y = dir(platform)

# print(y)




# second modules 

from math import sqrt, factorial

#  square root 

print(sqrt(12))

# factorial code

print(factorial(16))

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)