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


Please Help Members By Posting Answers For Below Questions

What is __ pycache __?

943


Do arrays start at 0 in python?

805


How to convert strings into integers in python?

966


What does the 'yield' keyword do in python?

921


How do you perform pattern matching in python?

999


Explain in detail – inheritance in python?

849


does recursion cause any trouble?

894


What do you understand by *args and **kwarg python?

842


What is setup cfg?

961


What is the keyword to import a module in python?

810


Is there a main in python?

943


How to open a text file and display its contents?

1001


How can you profile a python script?

938


What is a closure in python?

890


Is python better than bash?

800