WAP (Write a Program) in python to print your
introduction in 5 different lines.
Answers
Answered by
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
Music,
4 months ago
English,
4 months ago
Economy,
4 months ago
Science,
9 months ago
Computer Science,
9 months ago
Social Sciences,
1 year ago
Biology,
1 year ago