Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 560 of 3363
6K+ Views
In this tutorial, we will learn how to f convert string type variables into Boolean in Go programming language. Boolean Vs String Boolean is a data type having 1-byte size. It can store any one of the three values mainly True, False or none. It acts like a flag to show whether a condition is correct or not. String data type is used to store a sequence of characters. it can be in the form of literals or alphabets. The size of string variable is 1 byte or 8 bits. For this task various types of string conversions are needed, ... Read More
857 Views
In this article you will know how to convert the decimal number to octal in Go language. For this we are going to use the FormatInt() function of strconv package. When we say convert the decimal number to octal, it means to convert the number with the base value 10 to the base value 8. The base value means the number of digits required to represent the numeric value. Example 1: Go Language Program to convert Decimal Number to Octal using Library Function Syntax func FormatInt(input int64, base int) string for [condition | ( init; condition; increment) | Range] ... Read More
3K+ Views
In this article you will learn the go language code to convert decimal number to Hexadecimal. Decimal Number Vs Hexadecimal Numbers Decimal numbers are the numbers which have base 10, which means each digit of a number can have an integer value ranging from 0 to 9 (10 possibilities) depending on its position. For example, 23 is a decimal number. Any number contains 16 digits in it, it is based on base 16, which means hexadecimal numbers contains decimal number from 0 to 9 and extra 6 Alphabets. A−F. In go language all the hexadecimal numbers start with 0x or ... Read More
4K+ Views
In this tutorial, we will learn how to convert Boolean to a string in Go programming language. Boolean Vs String Boolean is a data type having 1 byte size. It can store any one of the three values mainly True, False or none. It act like a flag to show whether a condition is correct or not. String data type is used to store a sequence of characters. it can be in the form of literals or alphabets. The size of string variable is 1 byte or 8 bits. Example 1: Convert Boolean type to String USING strconv.FormatBool() Method Syntax ... Read More
644 Views
In this article we will discuss about how to check if a given number is odd using library function Go language. ODD NUMBERS − In mathematics any number is called odd if it gives “1” as remainder when divided by “2”. For example 1, 3, 5, 7 …. Even Numbers − unlike odd numbers even numbers get completely divided by “2” and do not produce any remainder. For example − 2, 4, 6, 8 … Syntax func Mod(number1, number2 float64) float64 The mod() function is defined in the math package. This function returns the remainder by dividing the two numbers ... Read More
29K+ Views
In this tutorial we will learn how to check if a given value is present in a Go−lang array or not. We will use 2 methods for this. Method 1: Using a for loop directly in the main function We will use a for loop to iterate over the elements of an array in Golang and check for the equality of values using the equality operator. If the values match then we can stop the iteration and say that the given value is present in the array. Method 2: Using the function Golang does not have any pre-defined library function ... Read More
1K+ Views
In this tutorial we will write a go language code to check whether an alphabet is vowel or consonant. Difference between Vowel and Consonant A character is called vowel if it is in any one of the following list of characters {a, e, I, o, u}. All the remaining characters are called consonants. In English language there are 5 vowels and 21 consonants. Here we are going to use following 2 methods − Method 1: Using if/else statement In this method we will use the conditional statements to check if a character is a vowel or consonant. Method 2: Using ... Read More
532 Views
In this article, we will explain which language is better (PHP or python) and discuss the reasons briefly. Python Python is a high−level, object-oriented, dynamic, and multipurpose programming language. Python's syntax, dynamic typing, and interpreted nature make it an excellent scripting language. It supports a variety of programming paradigms, including object-oriented, functional, and procedural styles. Additionally, because it is an interpreted language, it cannot be converted to computer-readable code before running at runtime. Another distinct property of Python is that it is an interpreted language, which means that Python code is not translated to machine−readable at runtime. Despite the fact ... Read More
306 Views
In this article, we will discuss frameworks used to make applications in Python. Python is experiencing an amazing growth trend. And there is no indication of a slowing in the near future. Artificial intelligence, smartphones, supercomputers, and other similar technology are forever changing our world. We can build a variety of mobile apps and programs in the languages that such technology supports. Python is one of the most widely used programming languages. According to Stack Overflow's developer review, Python was the most popular language in 2018, beating C# and PHP. Python's growth implies that it has evolved into a high-level ... Read More
653 Views
Yes, Python is an easy language to learn and we are going to find out the reason behind it with this article. What is Python? Python is a high-level, object-oriented, dynamic, and multipurpose programming language. Python's syntax, dynamic typing, and interpreted nature make it an excellent scripting language. It supports a variety of programming paradigms, including object-oriented, functional, and procedural styles. Additionally, because it is an interpreted language, it cannot be converted to computer-readable code before running at runtime. Python is an open-source high-level programming language. Guido van Rossum initially released it in 1991. Another distinct property of Python is ... Read More