Hey I am studying Python new to it and trying to write a program short code that checks which numbers divide evenly into 1241... tried this but just cant get the variables right. Also studying algebra beginners.
Thanks
Fixed it now:
n=0 i = 0 n=0 for i in range(0,1241): if (n%i == 0): print(i,"divides evenly into",n)idk if it needs a counter.. i am so lost
Thanks
Fixed it now:
n=1241 i = 0 for i in range(1,1242): if (n%i) == 0: print(i,"divides evenly into",n)