# Creating List of integers
List = [112, 966, 483, 807, 112, 693, 507, 712, 738, 605, 923, 112, 966, 679, 992, 29, 782, 780, 353, 392]
print("\nList of numbers: ")
print(List)
# Create Divide variable
myInt = 13
#List values divided by 13
newList = [x / myInt for x in List]
print("\nList Divided by 13")
print (newList)
I'm trying to make a new list now that is only of the sum of the division from my listed newList but i'm want only to keep the integers, How would I filter it out?
Or I guess what might be easier, if just listing how many numbers total can be divided by myInt and then output it as an integer?