how do i make x a random number from 1 to 100?
x= y=x*8 z=y*3 a=(z+y)/2 print(a) if 50<a<500: print("oy mate, thats a large number.") else: if 500<=a<1000: print("matey, ye be finding some large integers.") else: if 1000<=a: print("that number be a kraken") if a<=50: print("oy matey, thats a wee lil feller") as you can see i was messing around (this is like a practice code for me) and i have it set to give certain messages for certain values to the math equation. how do i make x random to not have to change it manually every time? i tried doing x= import random: blah blah and it keeps saying invalid syntax on the import bit. please help me out edit: i figured it out. i did import random number=random.randint(1,100) x=number print(x) i know the x=number isnt needed and print could be number but i prefer individual variables :)