Computer Science, asked by kathryngonzalez, 11 months ago

Write a Python program that prints (displays):

Your name
Address
Telephone number

Answers

Answered by Equestriadash
25

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: Vanessa

\tt Enter\ your\ address: California, US

\tt Enter\ your\ telephone\ number: +1-887-xxx-xxx

\tt Your\ details\ are:\\\\Vanessa\\\\California,\  US\\\\+1-887-xxx-xxx

Answered by amishafilomeena1003
5

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

Similar questions