Write a Python program that prints (displays):
Your name
Address
Telephone number
Answers
The following codes must be written in script mode, saved and then executed.
CODE:
name = input("Enter your name:")
address = input("Enter your address:")
number = input("Enter your telephone number:")
print("Your details are:", name, address, number, sep="\n")
OUTPUT:
Vanessa
California, US
+1-887-xxx-xxx
Answer:
The following codes must be written in script mode, saved and then executed.
CODE:
name = input("Enter your name:")
address = input("Enter your address:")
number = input("Enter your telephone number:")
print("Your details are:", name, address, number, sep="\n")
OUTPUT:
\tt Enter\ your\ n ame:Enter your name: Vanessa
\tt Enter\ your\ address:Enter your address: California, US
\tt Enter\ your\ telephone\ number:Enter your telephone number: +1-887-xxx-xxx
\begin{gathered}\tt Your\ details\ are:\\\\Vanessa\\\\California,\ US\\\\+1-887-xxx-xxx\end{gathered}
Your details are:
Vanessa
California, US
+1−887−xxx−xxx