I am trying to get the user to input a string, I then want to count the number of lines they have inputted and save it in a variable to use in a for loop. so far I have tried this:
asciiart = input("Please enter your entire ASCII art: ")
nlines = len(asciiart.split('\n'))
print(nlines)