Explanation of the Function let in Kotlin

The function let in Kotlin is primarily used to perform an action only when the object or variable is not null. If the variable is null, the code within let will not execute. To handle null cases, you can combine let with ?: run to perform an action if the value is null. Basic Usage of let in Kotlin The simplest way to use let in … Read more

Using Shared Preferences in Android Studio

In this tutorial, we explain how to use Shared Preferences in Android Studio to save, edit, and delete data in an XML file. This data can be accessed from any activity in your app or even other activities. Quick Overview of Shared Preferences in Android Studio Shared Preferences allow you to save data in an … Read more

Matplotlib errorbar, Python.

In this tutorial we explain how show the error bar in Matplotlib graphs (matplotlib errorbar). Python. The error bar, is a bar that indicates the error of some measurement. It is widely used in statistics, mainly in scatter diagrams. Adding the error bar in Matplotlib, Python. It´s very simple, we just have to write the … Read more

Voltage drop calculation in Excel.

Below we show an Excel file to calculate the voltage drop in electrical conductors. You can download the file Voltage drop calculation in Excel. We also add calculations of transformers, motors and the conductor cross section area due to voltage drop. That is the Excel file and you can download it at this link: We … Read more

Python math sin, cos, tangent.

In this tutorial we explain how to use trigonometric functions in Python using the math library. The sine, cosine and tangent. We also explain how to work with degrees and radians (Pyhon math sin). We will use the “math” library to work with trigonometric functions. Python’s math library includes trigonometric functions and many more commands … Read more