Computer Science, asked by rekham849, 4 months ago

Write python statements to perform the following: - 2

(a)To read name and mobile number of a person and store into

different variables.

(b)To display name and mobile number in the same line.​

Answers

Answered by pandamanasranjan674
4

Answer:

Sample Solution:-

Python Code:

def personal_details():

name, age = "Simon", 19

address = "Bangalore, Karnataka, India"

print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address))

personal_details()

Sample Output:

Name: Simon

Age: 19

Address: Bangalore, Karnataka, India

Similar questions