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 you sort a list in ascending order python?

763


What does join () do in python?

756


Why is epoch 1970?

804


Is python interpreted or compiled?

812


How do I use strftime in python?

862


What are key words in python?

799


Which server is best for python?

843


How do you sort values in descending order in python?

730


Why super is used in python?

798


Explain list, tuple, set, and dictionary and provide at least one instance where each of these collection types can be used.

868


What is the latest version of python?

888


Which is better Python or ruby?

847


How does lambda function differ from a normal function in python?

831


Which python library would you prefer to use for data munging?

782


Name few python checkers for debugging?

817