Answer Posted / nashiinformaticssolutions
A string literal is created by appending text to a variable that is enclosed in single or double quotes. To create multiline literals, assign the multiline text enclosed in triple quotes.
Numerical Literal: They could include complex numbers, integers, or floating-point data.
Character Literal: One character is enclosed in double quotations to create this.
True or False is the Boolean literal.
List collections, tuple literals, set literals, dictionary literals, and set literals are the four categories of literals.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I define raw_input in python?
Is python a good first language?
How is unit test done in python?
What is data hiding in python?
What is the meaning of def in python?
How do I call a method defined in a base class from a derived class that overrides it?
Is upper in python?
What is sub() function?
What are the benefits of flask?
Is python faster than matlab?
How does inheritance work in python?
How do you escape a string in python?
What is module in python?
What is threads life cycle?
What is the purpose of _init_() function in python?