so I can do this:
randomlist = [x for x in range(100)]
but I get an error when I try to do this:
randomlist = [x = random.randint(1,100) for x in range(100)]
I want to assign a random integer to 100 places in a list. I know I can just make a regular for loop, but it would be nice to have it all compact like my second example.