n = input('Enter the Number: ') print('Number Entered by User:',n) print(type(n)) # https://www.geeksforgeeks.org/random-numbers-in-python/https://www.geeksforgeeks.org/random-numbers-in-python/ import random num = random.random() print("Random number is: ",num) # import random import random # prints a random value from the list list1 = [1, 2, 3, 4, 5, 6] print(" prints a random value from the list 1 to 6:",random.choice(list1)) # prints a random item from the string string = "striver" print("prints a random item from the string of striver: ",random.choice(string)) # Random integer between 40 and 100 (inclusive) random_int = random.randint(40, 100) print(random_int)