1: What Are The Built-In Types Available In Python?
Here is the list of
most commonly used built-in types that Python supports:
§
Immutable built-in datatypes of Python
§
Numbers
§
Strings
§
Tuples
§
Mutable built-in datatypes of Python
§
List
§
Dictionaries
§
Sets
2: What
Are The Principal Differences Between The Lambda And Def?
Lambda Vs. Def.
§
Def generates a function and designates a name to call it later.
Lambda forms a function object and returns it.
§
Def can have a return statement. Lambda can’t have return
statements.
§
Lambda supports to get used inside a list and
dictionary.
3: What Is
A String In Python?
A string in Python is a sequence of alpha-numeric characters.
They are immutable objects. It means that they don’t allow modification once
they get assigned a value. Python provides several methods, such as join(),
replace(), or split() to alter strings. But none of these change the original
object.
No comments:
Post a Comment