That's a good start. It's important to have valid input. You might want to make sure the input is not less than 1 because 0 / 0 is undefined.
Your best friends for this problem are going to be the range() function, the list, the for loop, the modulo operator (%), and the string.join() method.
After you have the input here's the general algorithm:
create an empty list (we'll call it divisors)
for each number in a list containing numbers from 1 to user_N:
if the user_N % number is equal to 0:
append str(number) to our divisors list
Print out "The divisors of N are: " + our list of divisors, where each element in the list is joined by a space
Okay. I'm not going to turn that into code for you, but I'll explain all the parts you need.
Lists, as you probably know, are ordered collections of objects. We can use a list to store all our divisors as we find them. You add something to a list by using the list's .append() method. If our list is named divisors and we want to add 5 to it, we say "divisors.append(5)". We have to create an empty list before the loop so that the same list will be accessible to all iterations of the loop.
Python's range() function creates a list of integers for a given range. If you say "range(5)", it creates a list that looks like [0, 1, 2, 3, 4]. You should note that it contains 5 elements, but does not contain 5 itself. It will go all the way up to the number before the number you entered. There are good reasons for this, but I won't go into them.
Another way to do a range function is to give it a starting number then an ending number (but it will end on the number just before the end number you give it). range(1, 5) will give you the list [1, 2, 3, 4] (so we leave out the 0). This is probably what you want, keeping in mind that you'll want to do range(1, user_N + 1) so the list will go all the way up to and include user_N.
For loops in Python are great. You can literally say "for i in range(5):" and it will loop through the list [0, 1, 2, 3, 4], assigning each element of that list to the variable i down below, so you can do something individually with each member of the list. You don't have to use "i". You could use more descriptive names like "number", "possibleDivisor", or "billy_bob".
Modulo is an operation that basically gives you the remainder of dividing the number on the left by the number on the right. So 2 % 10 = 2 since 2 / 10 = 0 remainder 2. 10 % 2 = 0 however since 10 can be evenly divided by 2 (there is no remainder). So, when we're looking for divisors of a number, we find all numbers that, when dividing our larger number, have no remainder.
When you find that a number divides user_N, you can add it to your divisors list. I recommend casting the divisors as strings (using the str() function) before adding them to the divisors list. This is because we're going to use the .join() method on the list and it only likes working with strings.
After the for loop, we've found all our divisors. Now we need to print our string. The .join() method is what we want. Try this: ' '.join(['1', '2', '3']). It will print out "1 2 3". You're saying "Join each element from the list with a space." If you wanted to join them with the words "Hi mom!" you could say 'Hi mom!'.join(['1', '2', '3']) and it would print "1Hi mom!2Hi mom!3". So, you'd want to do something like
' '.join(divisors)
I think you should be able to figure it out from there. Let me know if you have any trouble and good luck!