multiline in python code example
Example 1: multiline input in python
print("Enter the array:\n")
userInput = input().splitlines()
print(userInput)
Example 2: python multiline string
#you can start a multiline string with either ''' or """
'''This is a
multiline
string.'''
"""It can be used as a
multiline comment
too."""