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#. Int To String Conversion In Different Programming Languages Integer to String Conversion is one of the most basic aspects of programming that you might have ever needed at […]
Tag Archives: Python
This is a quick tutorial on how you can generate different types of substrings from an existing string in python using string slicing method. Getting Different Substrings Of A String In Python Consider the following code. I’ve stored my name into a string variable fullString. Now, the following lines of code illustrate how you can […]
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 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 […]