Introduction to Solidity Reference Types and Arrays

Through this article, we’ll learn about reference types, in particular structs, arrays, and mappings, continued by a story on data locations, memory areas, and assignment behaviors. Finally, we’ll conclude with a section introducing arrays. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official … Read more

Python Return Integer From Function

Do you need to create a function that returns an integer value but you don’t know how? No worries, in sixty seconds, you’ll know! Go! πŸ”₯πŸ”₯πŸ”₯ A Python function can return any object. To return an integer, use the built-in int() function. Or create your own function with an arbitrary expression within the function body … Read more

Fight Programmer Procrastination! A Simple Hack From Bevahioral Psychology

How to Overcome Procrastination? Procrastination may easily be the reason number one why you are not reaching your goals. Although there are many flavors of procrastination, a common story may go like this: With good intentions, you set your alarm clock in the evening and expect your future self in the morning to get up, … Read more

Python Return Arguments From Function

πŸ’¬ Question: How to return one or multiple arguments from a Python function? Basically, creating a function that reflects one or more arguments like a mirror: Let’s find out! πŸ‘‡ Method 1: Return Single Argument A function can return a single argument by passing that argument variable after the return keyword. If the argument name … Read more

Python Return Float From Function

Do you need to create a function that returns a float but you don’t know how? No worries, in sixty seconds, you’ll know! Go! πŸ”₯πŸ”₯πŸ”₯ A Python function can return any object such as a float value such as 3.14. To return a float, you can use the built-in float() function or create your own … Read more

How to Disable Security Certificate Checks for Requests in Python

Summary: You can disable security certificate checks for requests in Python in two ways: (i) Using Session.verify as False (ii) Setting verify = false inside the request method. Problem Formulation Problem Statement: How to disable security certificate checks for requests in Python? The requests module in Python sends HTTP requests using a specific method to … Read more

Python | Split String into Characters

Summary: Use list(“given string”) to extract each character of the given string and store them as individual items in a list.Minimal Example:print(list(“abc”))# OUTPUT: [‘a’, ‘b’, ‘c’] Problem Formulation Problem: Given a string; How will you split the string into a list of characters? Example: Let’s visualize the problem with the help of an example: input … Read more