JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

Detecting keystrokes in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

If you need to access hardware like input devices like keyboards, there are modules in Python that can make your life much easier. Using such modules, you can easily perform the tasks you want without having to deal with the complexity of t...

Full

How to wait for user input in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

This tutorial shows you how to wait for a keypress before doing something else in Python. input() Waiting for input in Python input() Is a Python function that allows you to process user input in your code. It temporarily stops all processe...

Full

Move files from one directory to another using Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

Moving files from one directory to another might not sound like a big deal, but sometimes, it helps a lot in manipulating files. This tutorial will show you some ways to move files from one directory to another in Python. shutil.move() Movi...

Full

Finding a key by value in a Python dictionary

Publish Date:2025/05/06 Author:JIYIK Category:Python

A dictionary is a collection of elements in key-value pairs. The elements stored in a dictionary are unordered. In this article, we will look at different ways to find a key by value in a Python dictionary. Normally, you use keys to access...

Full

Check Python and Anaconda versions

Publish Date:2025/05/06 Author:JIYIK Category:Python

We can determine the Anaconda version using the following command in the Anaconda prompt. conda --version conda -V Similarly, we check the Python version in the Anaconda prompt using the following command. python --version python -V We can...

Full

Downgrade Python 3.9 to 3.8

Publish Date:2025/05/06 Author:JIYIK Category:Python

There are three effective methods you can use to downgrade the version of Python installed on your device: virtualenv the downgrade method, Control Panel the downgrade method, and Anaconda the downgrade method. In our tutorial, we will prov...

Full

Generating Random Prime Numbers in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

This tutorial demonstrates methods to generate and output any random prime number in Python. Prime numbers are very useful constants used in programming, especially in cryptography. The use of prime numbers is crucial in encryption and hash...

Full

If not statement in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

The statement in Python if checks a specific condition and executes a block of code if the condition is true. if not The does the opposite of if the statement. It tests if a condition is false and then executes some statements. Using if not...

Full

How to print to stderr in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

This tutorial explains how to write to standard error output in Python stderr . It also lists some sample code to explain different ways to write stderr , as the syntax has changed over time. In Python 3.x this prints stderr For Python 3.x,...

Full

Check if a set is empty in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

This tutorial will discuss various ways to check if a set is empty in Python. We will define a method empty_set() which will return if the set is empty True and return otherwise False . This method is useful when we want to perform an opera...

Full

Printing objects of a class in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

In this tutorial, we will look at various ways to print class objects in Python. Suppose we want to print() print a class instance using the print("print") function, for example to see the data or value of an object. We can do this using th...

Full

Getting the name of a class in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

Just like object constructors, classes can be defined as user-defined prototypes for creating objects. class Classes can be created using the keyword . A class is a data structure that can contain both data members and member methods. This...

Full

Sleeping for a number of milliseconds in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

In this tutorial, we will look at various ways to pause or suspend the execution of a program in Python for a given amount of time. Let's say we want to pause the execution of a program for a few seconds to let the user read instructions ab...

Full

Importing modules from a subdirectory in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

This tutorial will explain various ways to import modules from subdirectories in Python. Suppose we have a file in a subdirectory of our project directory and we want to import this file and use its methods in our code. We can import files...

Full

Reload or unimport modules in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

Modules allow us to store definitions of different functions and classes in Python files, which can then be used in other files. pandas , NumPy , scipy , Matplotlib are the most widely used modules in Python. We can also create our own modu...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial