Regarding python

python code is not working
random number generator is showing some syntax errors

Please provide with the correct error information such as a screenshot. None in this forum will be able to help you with such queries if you do not provide an appropriate view.


Import random module in python code if not earlier.


Can you visit your code again and check if you have imported the “random” module?

hi .here with I have explain that random number generation code .can you check .you have correctly written that code .

  1. import random // importing a random function .please kindly check all are lower case.
    2 . variable = random. random() // here we are calling that random function and store it to the variable.
  2. print(variable) // shows a output
    and also note that intentation also importand…