Learn to Build Smart Contracts in React with web3.js: Here’s How! (2/2)

Welcome to the second part of the series. In the first part, we have seen how web3.js helped the react frontend to connect to the smart contract. 👉 Recommended Tutorial: Learn to Build Smart Contracts in React with web3.js: Here’s How! (1/2) We explored the power of the “web3.eth” attribute to call the data from … Read more

Learn to Build Smart Contracts in React with web3.js: Here’s How! (1/2)

A question often asked by newbie learners while developing the smart contract is, “How to connect my frontend code with the smart contract?”. The answer should be web3.js till day. web3.js has a collection of libraries that allows you to interact with a local or remote Ethereum node. Consider it an interface connecting the front … Read more

Python | Split Text into Sentences

✨Summary: There are four different ways to split a text into sentences:🚀 Using nltk module🚀 Using re.split()🚀 Using re.findall() 🚀 Using replace Minimal Example Problem Formulation Problem: Given a string/text containing numerous sentences; How will you split the string into sentences? Example: Let’s visualize the problem with the help of an example. Method 1: Using … Read more

Python Generator Expressions

Short Overview Python Generator Expressions provide an easy-to-read syntax for creating generator objects. They allow you to quickly create an iterable object by using a single line of code. A generator expression is like a list comprehension, but instead of creating a list, it returns an iterator object that produces the values instead of storing … Read more

Python | Split String with Regex

Summary: The different methods to split a string using regex are: Minimal Example Problem Formulation 📜Problem: Given a string and a delimiter. How will you split the string using the given delimiter using different functions from the regular expressions library? Example: In the following example, the given string has to be split using a hyphen … Read more

Witness the Magic of Python AI-Written and Illustrated Storybooks for Children!

This blog describes a fun mini Python project using AI to generate a children’s storybook with AI-generated illustrations and using PyGame to render the story. Context Like over a million other users, I have spent some time this week playing with and being amazed by chatGPT. I ran one experiment to ask it to write … Read more

Python Matplotlib Makes Conway’s Game of Life Come Alive

In this article, you’ll learn how to make this beautiful and interesting animation using only Python, NumPy, and Matplotlib — nothing else: 👇 But how does the Game of Life work – and what’s behind the classical visualization anyways? The Game of Life Conway’s Game of Life is a cellular automaton devised by the British … Read more

Python | Split String Parenthesis

🍎Summary: You can split a string at parenthesis using re.split(r'[()]’, text) in a list comprehension accordingly. Minimal Example Problem Formulation 📜Problem: Given a string. How will you split the string at parenthesis and spaces? Example In the above problem, you have been given a string separated by spaces and there are certain strings that are … Read more

How to Split a Multi-line String into Multiple Lines?

Summary: Use given_string.splitlines() to split a given multiline string into multiple lines. Minimal Example: Problem Formulation 📜Problem: Given a string, How will you split the string into a list of words using newline as a separator/delimiter? Example: Let’s dive into the different ways of solving the given problem. Method 1: Using splitlines Approach: The most convenient and … Read more

11 Technologies You Can’t Afford to Ignore in 2023

Technology helps us to improve our daily lives in a variety of ways, from making our work more efficient to helping us stay connected with others. It also plays a critical role in driving innovation and progress in many fields, such as medicine and science. I also provide subjective estimates on the growth rate (CAGR … Read more