KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Create your portfolio, which should include your name, parent's name, class and address using strings in Python.

Python String Manipulation

3 Likes

Answer

name = "Virat Kohli"
father_name = "Prem Kohli"
mother_name = "Saroj Kohli"
class_name = "Class 10"
address = "New Delhi, India"

print("----- PORTFOLIO -----")
print("Name         :", name)
print("Father's Name:", father_name)
print("Mother's Name:", mother_name)
print("Class        :", class_name)
print("Address      :", address)
Output
----- PORTFOLIO -----
Name         : Virat Kohli
Father's Name: Prem Kohli
Mother's Name: Saroj Kohli
Class        : Class 10
Address      : New Delhi, India

Answered By

2 Likes


Related Questions