Introduction Python is one of the most popularly used languages in today’s world, with its application spread out in a wide range of domains, ranging from applied fields like computer vision and IoT, to Machine Learning and data-based fields such as Data Analysis. Along with this, Python is one of the easiest languages to start one’s programming journey with, due to its very easy syntax and ease of writing code. Thus here we will look at some steps to learn Python as a beginner. Steps Learning the basics Maintaining consistency Become a part of peer groups Build ... Read More
Introduction Python Integers are one of the primary data types, and are used for almost all major mathematical and logical operations. In Python, integers are zero, positive or negative whole numbers without a fractional part and having unlimited precision.They can be expressed in binary, octal and hexadecimal values. In this article, we will learn how to obtain the sign of an integer. Methods Used Using simple mathematical comparison with zero Using copysign() function of math module Using numpy.sign() function Creating a method with abs() function Method 1: Using Mathematical Comparison with Zero We ... Read More
What is an Interpreter? The Python interpreter works as a computer converter that converts high-level language to low-level machine language, which is essential for the computer to understand the code written by a programmer. Python codes are executed by an interpreter called CPython, which is written in C language and executes instructions in a block of code one line after another. Steps used Lexing Parsing Creation of byte code Conversion to machine-executable code Returning output Let’s dive into the steps in detail. Step 1: Lexing The first step of analyzing a code block in ... Read More
Kaggle is a social hub for data science and machine learning advocates where enthusiasts learn, explore, share, and collaborate to enhance their skills. Kaggle is like a playground for data, providing features like courses, competitions, discussions, and more. It provides users with a Jupyter notebook-like environment, saving time on setup and getting to work quickly. Kaggle is a great platform to practice and improve your skills. However, if you're new to Kaggle, the platform can be quite overwhelming to navigate. In this article, you’ll get a quick overview of how ML engineers can make the most of Kaggle. We'll guide ... Read More
Databases are like a collection of data in a well-structured and organized form. They are used in a variety of applications, from web applications to large scale systems. Databases are used to store data in tables, making it easier to access specific information. A table consists of rows and columns, where each row holds data, and the columns represent information based on these rows. Databases can be of two types: relational and non-relational. Relational databases store data in tables using SQL, while non-relational databases are designed to store data in collections, and use NoSQL to access it. Document databases are ... Read More
Overview jQuery is a fast, small, and feature-rich JavaScript library. It helps in DOM manipulation, event handling, animation, CSS and Ajax. To achieve the requirement we’ll use the “is(selector)” method of jQuery. is(selector) This method checks the currently selected elements against an expression/selector and returns true if any one of the selected elements matches with the selector. In the below code, we have created a container with the class “test”. We want to change the background color of the container when it is clicked. So, “test” which is the class name of the container will be used as a selector ... Read More
Overview To count each and every element in the HTML document including the head tag and body tag can be achieved using the jQuery "length()" method. By selecting the universal selector ( * ) as selector and calculating the length of its using length property will return the number of the elements contained in the HTML document page. Syntax The syntax used to count the number of elements is − $(“*”).property; selector − The selector used in this is the universal selector, as the name itself describes that it selects each and every element of the page. ... Read More
Overview The conversion of a title to URL Slug is also known as to “Slugify” a title. An URL Slug refers to a title which is descriptive by itself and is easy to read. It is attached to the URL of a page which tells about the current page as the slug is self-descriptive. So to convert a title to slug using JavaScript can be achieved using certain JavaScript functions such as toLowerCase(), replace(), trim(). Algorithm Step 1 − Create a HTML page with two input tags and add the id attribute in it as “title” and “urlSlug” respectively, ... Read More
Overview To convert the String type value to the Number type value is easy to manipulate with AngularJs as it has in-built function such as parseInt(), parseFloat() which convert the String type of number to the Number type and “isNumber()” function of angular which cross check whether the given data is converted to the number or not. For example if a number is of type decimal String type then we will use parseFloat() function to convert the String to Number, otherwise if we had to convert without the decimal number then we will use parseInt() function. Syntax The syntax used ... Read More
Overview To convert the spoken words to the text we generally use the Web Speech API’s component that is “SpeechRecognition”. The SpeechRecognition component recognizes the spoken words in the form of audio and converts them to the text. The spoken words are stored in it in an array which are then displayed inside the HTML element on the browser screen. Syntax The basic syntax used in is − let recognization = new webkitSpeechRecognition(); We can also use SpeechRecognition() instead of webkitSpeechRecognition() as webkitSpeechRecognition() is used in chrome and apple safari browser for speech recognition. Algorithm Step 1 ... Read More