Answer Posted / glibwaresoftsolutions
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
What is __ pycache __?
Do arrays start at 0 in python?
How to convert strings into integers in python?
What does the 'yield' keyword do in python?
How do you perform pattern matching in python?
Explain in detail – inheritance in python?
does recursion cause any trouble?
What do you understand by *args and **kwarg python?
What is setup cfg?
What is the keyword to import a module in python?
Is there a main in python?
How to open a text file and display its contents?
How can you profile a python script?
What is a closure in python?
Is python better than bash?