Super simple spam program
Use descriptive variable names
No need to add one to x and then use range(1, w)  - get used to using zero-based numbering
By convention in Python you can use _ as the name for a loop variable when you won't actually be referring to that variable anywhere. 
As you develop this into a full programme, structure code under functions.
use blank lines sparingly


So:

def main():
    number_of_times = int(input("Choose the number of times you want to spam. "))
    message = input("What message do you want to spam? ")
    for _ in range(number_of_times):
        print(message)


Alternatively:

print((message + '\n') * number_of_times)