KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

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

Python String Manipulation

1 Like

Answer

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

Output

Knowledge

Answered By

1 Like


Related Questions