In: Computer Science
Write below in Python
Get user name from keyboard using input() function
(Example username = input("Enter username:")
A: What is your name?
B: My name is XXXX.
B: What is yours?
A: My name is XXXX.
A: Nice to meet you.
B: Nice to meet you, too.
Use print statement and use input() function
The Program Code is :
#Python Program
print("A : What is your name
?")
username = input("B: My name is ")
# It will read the username from key Board
print("B : What is yours?")
username = input("A : My name is ")
# It will read the username from key Board
print("A : Nice to meet you.")
print("B : Nice to meet you, too.")