write a program to display your name using interactive mode
Answers
Answered by
10
Answer:-
def personal_details():
name, age = "EesMi", 21
address = "Burewala, Vehari, Pakistan"
print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address))
personal_details()
Answered by
4
Following are the code in python which gives the output in interactive mode:
Explanation:
print("Your name is: "+input("Enter the name")) # it will take input from the user and print that input.
Output:
- When the user gives input "Ram", It will prints "Your name is: Ram".
- if the user gives input as "Sham", It will prints "Your name is: Sham".
Code Explanation
- The interactive mode is a mode in python in which the result will appear after executing a one-line statement.
- This mode appears on the command line of python.
- When the user writes the above one-line command and press enter then it will render a message to enter the name.
- When the user enters any type of input then the program gives the output as "Your name is: input_value".
Learn More:
- Interactive mode : https://brainly.in/question/14721371
- Interactive mode : https://brainly.in/question/10561880
Similar questions
Psychology,
7 months ago
Physics,
7 months ago
Science,
7 months ago
Math,
1 year ago
Biology,
1 year ago