Computer Science, asked by anjaleeyadav121181, 10 months ago

WAP (Write a Program) in python to print your
introduction in 5 different lines.​

Answers

Answered by Equestriadash
36

The following codes must be typed in script mode, saved and then executed.

Here, we'll mainly be making use of print and input statements. The print statement enables the system to print a specific output. The input statement enables a prompt where the user is asked to enter the required data.

The sep="\n" function enables the data to be displayed in several lines.

CODE:

name=input("Enter your name:")

Class=input("Enter your class:")

roll=input("Enter your roll number:")

school=input("Enter your school name:")

place=input("Enter your location:")

print("Your details are", name, Class, roll, school, place, sep="\n")

OUTPUT:

Attachments:
Similar questions