For further actions, you may consider blocking this person and/or reporting abuse
See why 4M developers consider Sentry, “not bad.”
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Read next

Code Smell 290 - Refused Bequest
Maxi Contieri -

Amazon Aurora Global Database – A Deep Dive
Sushant Gaurav -

Asas Kubernetes - Hari 4. Bagaimana pentadbir Kubernetes mengawalselia sumber komponen.
kodakademik -

Implementing a RESTful API with Advanced Error Handling in Node.js
Rowsan Ali -
Top comments (3)
Welcome to programming world, make sure that you have these correctly:
1- Spelling of the import, it should be
import random
.2- Make sure the indentation correctly done by using the tab button.
3- Make sure that your file.py should not be
random.py
this will raise some issues related to the random module.Hi Max! The suggestions provided in the other comments cover the most likely scenarios - be sure to let us know what happens! We'll be happy to jump in and help get you rolling again, if those ideas don't solve the problem - we'll just need a little more detail about what you're seeing if that's the case!
I am making a random guess here for the error as getting syntax error for an import is unusual.
Make sure you are importing random at the top of your file i.e. first line.
Second, check if you have name your .py file as random.py