Today we went reviewed previous topics and did practice problems
Class slides. HW inside on slide 15, slides 17-18 are bonus ;)
Post your solutions in the comments if you can. Please review previous practice problems and try to figure them out yourself. You can ask me questions during class or via email.
See you next week!
n = int(input('Please input a number.')) for i in range(2, n): if n % i == 0: break print(i)
when I do it, it will get rid of 1 from the nimber if it is prime :(
x = int(input('gib me number: ')) def func(haha): for i in range(2, haha + 1): if haha % i == 0: break return i print(func(x))