KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Write a Python program to create a sub string from a string.

Python String Manipulation

3 Likes

Answer

string = "Knowledge is power"
substring = string[0:9]
print(substring)

Output

Knowledge

Answered By

2 Likes


Related Questions