Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the types of literals in Python?

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


Please Help Members By Posting Answers For Below Questions

How do I get numpy in python?

891


What is sub() function?

1077


How will you get a titlecased version of string?

828


In python, how do I read a file line-by-line into a list?

957


How can you declare multiple assignments in one statement?

937


What is python used for?

907


How to convert string into datetime?

925


Does the same python code work on multiple platforms without any changes?

1066


Do sheeps sleep?

815


What does sorted do in python?

1011


Is set nesting implemented in python?

910


What is python __ repr __?

859


How do I create a python package in pycharm?

953


What is the difference between python 2 and python 3?

950


What does the 'yield' keyword do in python?

914