Python | input method
input(~) method reads a line from user input, converts it to a string and returns it.
input(~) method will pause your program and wait for the user to enter some text.
A string to write to standard output without a trailing new line.
A string from the user input.
To ask the user for their name and store it to variable
a = input("What is your name?")# Assume the user input 'Tom'print("Hello " + a)Hello Tom
Provide a multi-line prompt
To provide a multi-line prompt to the user:
prompt = "Hello and welcome to SkyTowner!"prompt += "\nPlease provide us with your first name so that we can customize our messages: "a = input(prompt)#Hello and welcome to SkyTowner!#Please provide us with your first name so that we can customize our messages:# Assume the user input 'Tom'print("Hello " + a)Hello Tom