Complex Numbers in Python

complex numbers in python

Recently in a Python webinar, someone asked me a question on complex numbers. Then I explored more about complex numbers in Python. In this tutorial, I will explain two important methods and applications of complex numbers with suitable examples along with screenshots. Python Complex Numbers Before getting into Python’s implementation, let us learn what are … Read more >>

How to Split a String by Comma in TypeScript?

Split a String by Comma in TypeScript

In this tutorial, I will explain how to split a string by comma in TypeScript. If you’re a developer working with TypeScript, you might often need to handle strings that contain lists of items separated by commas. You need to know how to split a string by commas in cases such as processing CSV data, … Read more >>

How to Convert an Array to a String in TypeScript?

If you are a TypeScript developer working with arrays, this tutorial will be very helpful. In it, I explained how to convert an array to a string in TypeScript. Let’s understand why you might need to convert an array to a string. Arrays are versatile data structures that can hold multiple values, but sometimes you … Read more >>

How to Convert Boolean to String in TypeScript?

SyntaxError invalid character in an identifier

In this tutorial, I will explain how to convert a boolean to a string in TypeScript and show you various methods with examples. Convert Boolean to String in TypeScript Boolean values (true or false) are often used for conditional logic in TypeScript. However, there are scenarios where you need to convert these boolean values into … Read more >>

How to Convert Float to Int in Python?

Convert Float to Int in Python

Recently while working on a project for my clients, I encountered a scenario where I needed to resize images, pixel coordinates must be whole numbers because pixels cannot be fractional. Then explored more about converting float to int. In this article, I will explain how to convert float to int in Python with suitable examples. … Read more >>

How to Convert Date to String Format DD/MM/YYYY in TypeScript?

I recently got a particular requirement from one of the clients. The client wanted to convert a date to a string format DD/MM/YYYY in TypeScript. In this tutorial, I will explain how to convert a date to a string in the DD/MM/YYYY format using TypeScript with some examples. Different regions use different date formats. For … Read more >>

How to Reverse a Number in Python?

how to reverse a number in python 2

When I started my programming journey at Stanford’s computer science program, one of the first algorithmic challenges I encountered was reversing numbers. In this article, I’ll walk you through multiple methods to reverse a number in Python, from the most simple approaches to more advanced techniques with examples. Reverse a Number in Python Let us … Read more >>

Factorial of a Number in Python

Factorial of a Number in Python

As a software engineer who has worked with Python for many years across the USA, I’ve implemented factorial calculations more times than I can count. In this comprehensive guide, I’ll walk you through multiple approaches to calculating the factorial of a number in Python, from the simplest implementations to highly optimized solutions. What is a … Read more >>

Binary Search in Python

Binary Search in Python

As a software engineer who has spent over a decade optimizing algorithms for tech companies across San Francisco and New York. I came across various situations where I needed to use binary search as a part of my project. In this article, I will explain binary search in Python with examples. Python Binary Search Binary … Read more >>

How to Catch Multiple Exceptions in Python?

Python Catch Multiple Exceptions

As a Python developer with over a decade of experience, I came across various scenarios where I needed to handle errors. Today, I’m going to walk you through one of Python’s most powerful error-handling features: catching multiple exceptions. Let us learn various methods to catch multiple exceptions in Python with suitable examples. Python Multiple Exceptions … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.