Robotics & Artificial Intelligence
Blank spaces are counted as character in string.
Python String Manipulation
3 Likes
Answer
True
Reason — In a string, each character has a unique index value, and this includes blank spaces, so blank spaces are counted as characters in a string.
Answered By
2 Likes
Related Questions
What should be the output of following program?
information = "My favorite subject is Python, I want to develop an AI application in Python" val = information.find('T') print(val) if val > 1: print("Python is a good programming language for AI applications ") else: print("My favorite subject is Python")Only single quotes can be used to declare a string in Python.
Special characters cannot be used in strings.
Backslash (\) is an escape character.