Robotics & Artificial Intelligence
Only single quotes can be used to declare a string in Python.
Python String Manipulation
3 Likes
Answer
False
Reason — In Python, a string can be enclosed in single quotes or double quotes.
Answered By
1 Like
Related Questions
What would be the output of following program?
str2 = "My classmate is Aayan" if str2.endswith("Aayan"): print("Aayan is studying in class X") else: print("Aayan is not the student of class X")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")Blank spaces are counted as character in string.
Special characters cannot be used in strings.