#python_builtins_by_driscollis نتائج البحث

لا توجد نتائج لـ "#python_builtins_by_driscollis"
لا توجد نتائج لـ "#python_builtins_by_driscollis"
لا توجد نتائج لـ "#python_builtins_by_driscollis"

Today is the last day of my tour of #Python's built-in functions! Did you know there are over 75 built-in functions, classes and decorators in Python? 🐍🤯🔥 If you didn't, you might want to checkout my full series of tweets using this hashtag: #python_builtins_by_driscollis

driscollis's tweet image. Today is the last day of my tour of #Python's built-in functions!

Did you know there are over 75 built-in functions, classes and decorators in Python? 🐍🤯🔥

If you didn't, you might want to checkout my full series of tweets using this hashtag: #python_builtins_by_driscollis

#Python comes with lots of built-in methods. One such method is called `reversed()`, which returns a reverse iterator. You can use `reversed()` to reverse sequences which have __reversed__() implemented #python_builtins_by_driscollis 🐍🔥 Here are a few examples:

driscollis's tweet image. #Python comes with lots of built-in methods. One such method is called `reversed()`, which returns a reverse iterator.

You can use `reversed()` to reverse sequences which have __reversed__() implemented

#python_builtins_by_driscollis 🐍🔥

Here are a few examples:

#Python includes a function called `vars()`, which will return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute. Without an argument, `vars()` acts like `locals()` #python_builtins_by_driscollis 🧵🐍👇

driscollis's tweet image. #Python includes a function called `vars()`, which will return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute.

Without an argument, `vars()` acts like `locals()`

#python_builtins_by_driscollis

🧵🐍👇

#Python includes the useful `set()` class. You can use `set()` to create an empty set or cast another data type to a set. Here are a few examples: #python_builtins_by_driscollis 🧵🐍👇

driscollis's tweet image. #Python includes the useful `set()` class. You can use `set()` to create an empty set or cast another data type to a set.

Here are a few examples:

#python_builtins_by_driscollis

🧵🐍👇

#Python includes a `float()` function as one of its built-ins. You can use `float()` to create a float from an integer or string. Strings must be decimal numbers, can include whitespace or a sign. See the following screenshot for examples: #python_builtins_by_driscollis

driscollis's tweet image. #Python includes a `float()` function as one of its built-ins. 

You can use `float()` to create a float from an integer or string.

Strings must be decimal numbers, can include whitespace or a sign.

See the following screenshot for examples:

#python_builtins_by_driscollis

#Python includes several handy built-in functions you can use to work with class attributes. One such built-in is called `delattr` and is used for deleting attributes. I have never really needed this built-in myself, but here's an example #python_builtins_by_driscollis

driscollis's tweet image. #Python includes several handy built-in functions you can use to work with class attributes.

One such built-in is called `delattr` and is used for deleting attributes.

I have never really needed this built-in myself, but here's an example

#python_builtins_by_driscollis

Python includes the `int()` function built-in. You can use `int()` to cast floats or strings to integers #python_builtins_by_driscollis Here are a few examples:

driscollis's tweet image. Python includes the `int()` function built-in.

You can use `int()` to cast floats or strings to integers

#python_builtins_by_driscollis

Here are a few examples:

#Python includes a function called `vars()`, which will return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute. Without an argument, `vars()` acts like `locals()` #python_builtins_by_driscollis 🧵🐍👇

driscollis's tweet image. #Python includes a function called `vars()`, which will return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute.

Without an argument, `vars()` acts like `locals()`

#python_builtins_by_driscollis

🧵🐍👇

#Python has a `pow()` function built-in. This function isn't about power though. Instead, it's about exponents! Basically, `pow()` will return the `base` to the power `exp`. Note that it is the same as base**exp #python_builtins_by_driscollis 🧵🐍👇

driscollis's tweet image. #Python has a `pow()` function built-in. This function isn't about power though. Instead, it's about exponents!

Basically, `pow()` will return the `base` to the power `exp`.

Note that it is the same as base**exp

#python_builtins_by_driscollis

🧵🐍👇

#Python has a `bytes()` built-in that is closely related to its `bytearray()` built-in. 🐍🔥 The difference is that `bytes()` as immutable! `bytes()` has the same non-mutating methods and the same indexing and slicing behavior. #python_builtins_by_driscollis

driscollis's tweet image. #Python has a `bytes()` built-in that is closely related to its `bytearray()` built-in. 🐍🔥

The difference is that `bytes()` as immutable!

`bytes()` has the same non-mutating methods and the same indexing and slicing behavior.

#python_builtins_by_driscollis

#Python has the useful `globals()` built-in It returns the dictionary implementing the current module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called. #python_builtins_by_driscollis

driscollis's tweet image. #Python has the useful `globals()` built-in

It returns the dictionary implementing the current module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called.

#python_builtins_by_driscollis

Another great #Python built-in is `chr()` 🐍🔥 `chr(i)` will return the string representing a character whose Unicode code point is the integer i. Note: This is the inverse of `ord()` Below are a couple of examples: #python_builtins_by_driscollis

driscollis's tweet image. Another great #Python built-in is `chr()` 🐍🔥

`chr(i)` will return the string representing a character whose Unicode code point is the integer i. 

Note: This is the inverse of `ord()`

Below are a couple of examples:

#python_builtins_by_driscollis

#Python has the useful `globals()` built-in It returns the dictionary implementing the current module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called. #python_builtins_by_driscollis

driscollis's tweet image. #Python has the useful `globals()` built-in

It returns the dictionary implementing the current module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called.

#python_builtins_by_driscollis

Another great #Python built-in is `chr()` 🐍🔥 `chr(i)` will return the string representing a character whose Unicode code point is the integer i. Note: This is the inverse of `ord()` Below are a couple of examples: #python_builtins_by_driscollis

driscollis's tweet image. Another great #Python  built-in is `chr()` 🐍🔥

`chr(i)` will return the string representing a character whose Unicode code point is the integer i.

Note: This is the inverse of `ord()`

Below are a couple of examples:

#python_builtins_by_driscollis

#Python has the `ord()` function built-in. Given a string representing one Unicode character, `ord()` will return an integer representing the Unicode code point of that character Here are a few examples #python_builtins_by_driscollis

driscollis's tweet image. #Python has the `ord()` function built-in.

Given a string representing one Unicode character, `ord()` will return an integer representing the Unicode code point of that character

Here are a few examples

#python_builtins_by_driscollis

#Python includes several handy built-in functions you can use to work with class attributes. One such built-in is called `delattr` and is used for deleting attributes. I have never really needed this built-in myself, but here's an example #python_builtins_by_driscollis

driscollis's tweet image. #Python includes several handy built-in functions you can use to work with class attributes.

One such built-in is called `delattr` and is used for deleting attributes.

I have never really needed this built-in myself, but here's an example

#python_builtins_by_driscollis

The #Python programming language includes the `tuple()` class for easy casting of other data types to a tuple. If you don't pass anything to the `tuple()` class, you will create an empty tuple Here are a few examples: #python_builtins_by_driscollis

driscollis's tweet image. The #Python programming language includes the `tuple()` class for easy casting of other data types to a tuple.

If you don't pass anything to the `tuple()` class, you will create an empty tuple

Here are a few examples:

#python_builtins_by_driscollis

#Python has a `bytes()` built-in that is closely related to its `bytearray()` built-in. 🐍🔥 The difference is that `bytes()` as immutable! `bytes()` has the same non-mutating methods and indexing and slicing behavior. #python_builtins_by_driscollis

driscollis's tweet image. #Python has a `bytes()` built-in that is closely related to its `bytearray()` built-in. 🐍🔥

The difference is that `bytes()` as immutable!

`bytes()` has the same non-mutating methods and indexing and slicing behavior.

#python_builtins_by_driscollis

Loading...

Something went wrong.


Something went wrong.


United States Trends