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
Can we use break in if statement in python?
How to split a string into a list?
How do we execute python?
Please explain when is the python decorator used?
What is the purpose of the pythonstartup environment variable?
How to install a package and import?
What does __ init __ py do in python?
What do you know about the python enumerate?
Which compiler is best for python?
How do you upgrade pip?
Why do we use sets in python?
What is the purpose of is, not and in operators?
Why does python use self?
Tell us what is python? What are the benefits of using python? What do you understand of pep 8?
What is the concatenation?