- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 34490 Articles for Programming
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
251 Views
Arithmetic operations are the mathematical calculations on numeric data types. The following are the arithmetic operations allowed in python. Addition (+) Subtraction (-) Multiplication (*) Division (/) Floor Division (//) Modulo (%) Exponentiation (**) There are several ways to compute arithmetic operation from string. Let’s see them one by one. Using the eval() Function The eval() function in Python evaluates an expression passed as a string and returns the result. We can use this function to compute arithmetic operations from a string. Example In this approach, the eval() function evaluates the expression "2 + 3 * 4 - ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
59 Views
Dictionary is the mutable data structure in python, which allows the user to store the data in the format of key and value. The key and value are separated by using the symbol ":". The keys are unique and the values can be repeated. The values can be given as a single element or multiple elements within a list. If we want to access the elements from a dictionary we have to use the key. It provides various functions and methods to work and manipulate the dictionaries. There are several approaches to check whether the values of a dictionary are ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
64 Views
Lexical order refers to the order of characters or strings based on their dictionary or alphabetical order. In lexical order, characters are arranged in the same way they would be in a dictionary. The comparison is done based on the numerical values of the characters in their respective character sets such as ASCII or Unicode. In lexical order, characters are compared based on their ASCII or Unicode values from left to right. The character with a lower ASCII or Unicode value comes before the one with a higher value. For example, in ASCII order, 'a' comes before 'b', 'b' comes ... Read More
![Pradeep Kumar](https://www.tutorialspoint.com/assets/profiles/483469/profile/60_891162-1657084658.jpg)
411 Views
What Is PHP ? PHP (Hypertext Preprocessor) is a widely-used open-source scripting language primarily designed for web development. It is a server-side scripting language that is embedded within HTML, allowing developers to create dynamic web pages and interactive web applications. PHP is known for its flexibility, simplicity, and extensive support, making it a popular choice among developers for building robust and scalable websites. It offers a vast range of functionalities and features, including database connectivity, file manipulation, session management, and form handling. PHP code is executed on the server, generating HTML output that is then sent to the client's ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
100 Views
Seaborn is a powerful data visualization library in Python that builds on top of Matplotlib. It provides a high-level interface for creating attractive and informative statistical graphics. It offers a variety of plot types to explore and visualize data effectively. The below are the different plots available in Seaborn which helps the user to visualize the data. Scatter Plot A scatter plot is used to display the relationship between two numeric variables. In seaborn we have a function namely scatterplot() which creates a scatter plot with optional additional features such as coloring and marker size based on other variables. Line ... Read More
![Pradeep Kumar](https://www.tutorialspoint.com/assets/profiles/483469/profile/60_891162-1657084658.jpg)
135 Views
What is PHP? PHP (Hypertext Preprocessor) is a widely used server-side scripting language for web development. It allows developers to embed code within HTML files, enabling the creation of dynamic web pages and interactions with databases. PHP is known for its simplicity, versatility, and extensive integration capabilities with popular databases. It offers a broad range of extensions and has a large community of developers, ensuring ample resources and support. PHP Program to Find the Number Occurring Odd Number of Times The concept of "Number Occurring Odd Number of Times" refers to finding a number in an array that ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
191 Views
Pyglet is a powerful library for game development and multimedia applications in Python. It provides an easy-to-use interface for creating games, handling graphics, playing audio, and handling user input. It is built on top of the OpenGL library, which allows for high-performance graphics rendering. The following steps to be followed while developing a game using the pyglet library. Installation We can install Pyglet using pip by running the following command in the python environment. Example pip install pyglet Output Collecting pyglet Downloading pyglet-2.0.7-py3-none-any.whl (841 kB) -------------------------------------- 841.0/841.0 kB 2.0 MB/s eta ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
370 Views
Generally, a flashcard is a learning tool that consists of a small card or piece of paper with information printed on one side. These are commonly used to aid in memorization and learning of facts, vocabulary, definitions, equations, or any other type of information that can be presented in a question-and-answer format. With the advancement of technology, flashcards have also been adapted into digital formats, such as mobile apps and online platforms, which provide additional features like multimedia content, spaced repetition algorithms, and progress tracking. There different approaches available in python to build the flash cards, let’s go through each ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
180 Views
The itertools is a module in the Python standard library that provides a collection of tools for efficient iteration and combination of iterables and as it is part of python standard library no need to perform any additional installations. It offers various functions that can be used to manipulate, combine, and iterate over iterables in different ways. The itertools.product() function is related to the itertools module, which is powerful tool for generating the cartesian product of multiple iterables. It takes one or more iterables as input and returns an iterator that produces tuples representing all possible combinations of the ... Read More
![Niharika Aitam](https://www.tutorialspoint.com/assets/profiles/654775/profile/60_3867437-1684125242.jpg)
154 Views
An octal number is a number expressed in the base-8 numeral system. It uses digits from 0 to 7. Octal numbers are commonly used in computer science and digital systems, especially when dealing with groups of three bits. In octal notation, each digit represents an increasing power of 8. The rightmost digit represents 8^0 (1), the next digit represents 8^1 (8), the next digit represents 8^2 (64), and so on. By combining these digits, octal numbers can represent positive integers. For example, the octal number 52 represents the decimal number as follows. (5 * 8^1) + (2 * 8^0) = ... Read More