In: Computer Science
using python 3
1. Two-line input: print a prompt (e.g Enter your first name) and then assign the input to a variable
print ("Enter your first name")# the word prompt is the message the user should see
firstName = input()
print (firstName)
Below are the code for two line input and one line input.
if __name__ == '__main__': # Below is the example of two line input: print("Enter your first name : ") # Message to user for entering input firstName = input() # system input and assign to the variable print(firstName) # print the output # Below is the example of one line input: firstName = input("Enter your first name : ") # system input and assign to the variable print(firstName) # print the output