This is a quick tutorial on how you can convert from int data type to string data type in C++, Java, Python, PHP, JavaScript, Swift, and C#. Table of Contents Int To String Conversion In Different Programming LanguagesPythonC++JavaPHPJavaScriptSwiftC# Int To String Conversion In Different Programming Languages Integer to String Conversion is one of the most […]
This is a quick tutorial on how you can generate different types of substrings from an existing string in python using string slicing method. Table of Contents Getting Different Substrings Of A String In PythonSubStrings According To Starting & Ending PositionsAlternate Characters SubstringsBonus Tip to Reverse String or SubString Getting Different Substrings Of A String […]
This is a detailed tutorial on how you can add text to image in PHP using the GD library. It allows writing any text with any font on any image background. This is also one of my favorite topics in PHP. This thing has once helped me in generating thousands of images for a website […]
This article explains the meaning of <, >, ≤ and ≥ symbols in HTML. Find out why they are used and when you should use them and how. Meaning Symbol Meaning < Less-Than Sign (<) > Greater-Than Sign (>) ≤ Less-than or Equals sign ( ≤ ) ≥ Greater-than or Equals sign ( ≥ ) […]
This is a quick tutorial explaining different ways to loop through an array in JavaScript. It’s for all people looking for a foreach loop in JavaScript. Well, most of the people find themselves in trouble when asked for a JavaScript Array Iteration. Unlike most of the other programming languages, looping through an array in Javascript […]
This is a quick tutorial on how to get the current time in python. The most common and simplest ways to get time in python are discussed here with examples. Using the datetime package Python comes with a pre-installed datetime package. All you need to do is to import this package in your python program […]
This is a quick tutorial on how you can rename a git branch locally as well as remotely. First, you have to rename it locally and the have to push the changes to the remote repository. Renaming Local Git Branch If you want to rename the current local branch, use the following git branch command. […]
This is a Quick Tutorial on how you can easily update or upgrade already installed python packages using pip. Just run this single line command. pip install [package_name] –upgrade or Shortly, pip install [package_name] -U Example. pip install bs4 –upgrade or pip install bs4 –U Here, bs4 is the pip directory name of the module […]
This is a quick tutorial on finding the size of a list in python. All you need to do is to pass the list variable as an argument to the inbuilt len() function. Consider the following python code in which I’ve created a list containing 5 different integers, so the length of this python list […]
This is a quick tutorial on how you can convert an octal number to decimal in Python. The vice-versa i.e. Decimal To Octal Conversion in Python is also explained. Octal To Decimal Conversion You can use the int function in python with base 8 to convert an octal number to its decimal form. The syntax […]