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 / 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


Please Help Members By Posting Answers For Below Questions

Can we use break in if statement in python?

849


How to split a string into a list?

1212


How do we execute python?

923


Please explain when is the python decorator used?

894


What is the purpose of the pythonstartup environment variable?

887


How to install a package and import?

955


What does __ init __ py do in python?

920


What do you know about the python enumerate?

980


Which compiler is best for python?

915


How do you upgrade pip?

895


Why do we use sets in python?

920


What is the purpose of is, not and in operators?

851


Why does python use self?

896


Tell us what is python? What are the benefits of using python? What do you understand of pep 8?

1058


What is the concatenation?

974