Featured Post

Python map() and lambda() Use Cases and Examples

Image
 In Python, map() and lambda functions are often used together for functional programming. Here are some examples to illustrate how they work. Python map and lambda top use cases 1. Using map() with lambda The map() function applies a given function to all items in an iterable (like a list) and returns a map object (which can be converted to a list). Example: Doubling Numbers numbers = [ 1 , 2 , 3 , 4 , 5 ] doubled = list ( map ( lambda x: x * 2 , numbers)) print (doubled) # Output: [2, 4, 6, 8, 10] 2. Using map() to Convert Data Types Example: Converting Strings to Integers string_numbers = [ "1" , "2" , "3" , "4" , "5" ] integers = list ( map ( lambda x: int (x), string_numbers)) print (integers) # Output: [1, 2, 3, 4, 5] 3. Using map() with Multiple Iterables You can also use map() with more than one iterable. The lambda function can take multiple arguments. Example: Adding Two Lists Element-wise list1 = [ 1 , 2 , 3 ]

Blockchain Technology: 11 Exclusive Benefits

Here are the benefits of blockchain technology. Less maintenance and its distributable nature made the blockchain technology hot in the market.  


Benefits
 
The applications that used blockchain technology Viz: Banks, Share markets, Government Bodies, and Big Corporations. 

What is Blockchain

Blockchain stores each transaction in Blocks. No one can tamper or change the details. The people who are making a transaction in the Blockchain world both have the same copies. he parties involved cannot changes these records. So it is robust.

Advantages of distributed ledger technology (Blockchain)

  1. The distributed nature of ledger details.
  2. Distributed data available to all parties, and cannot tamper the data.
  3. Every transaction is Public. That means only people who have access can see the information.
  4. It stores all records permanently.
  5. One cannot edit or manipulate the data.
  6. Data-hacking is not possible since it is distributed.
  7. Unlike centralized processing, the Blockchain is much faster. And verification and completing a transaction are faster.
  8. Unlike centralized processing, it is less expensive. In the centralized system each server in the network charges some amount as a processing fee. Here you can eliminate intermediaries - so less expensive.
  9. The Centralized databases are expensive to carry transactions of low value. The fee to pay intermediaries is more.
  10. The Data in the Blockchain is not editable. In the case of Centralized databases, the Banks or Private Organizations can edit them.
  11. The maintenance of Blockchain is cheaper.

Disadvantages

  • Publish carefully. Once publishes you can't take back

References

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

SQL Query: 3 Methods for Calculating Cumulative SUM

Python placeholder '_' Perfect Way to Use it