this code works well in python 3.10 but when i run same code in command prompt through Atom compiler i get a traceback call and an undesired index position program executes before traceback. please help me figure it out
urllib tries to import from random, but you have shadowed the built-in random library by naming a file in your working directory ‘random.py’. Rename that file to something else, and in the future avoid using built-in names.