Answer Posted / hr@tgksolutions.com
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 get numpy in python?
What is sub() function?
How will you get a titlecased version of string?
In python, how do I read a file line-by-line into a list?
How can you declare multiple assignments in one statement?
What is python used for?
How to convert string into datetime?
Does the same python code work on multiple platforms without any changes?
Do sheeps sleep?
What does sorted do in python?
Is set nesting implemented in python?
What is python __ repr __?
How do I create a python package in pycharm?
What is the difference between python 2 and python 3?
What does the 'yield' keyword do in python?