Running Python scripts on Linux is a fundamental skill. This guide covers methods from simple command-line invocation to advanced scheduling and service management, ensuring your Python code runs reliably and automatically.
Python
Python related articles. Mostly how to do certain thing with Python but not only
How to convert array to binary?
Learn how to save and load NumPy arrays as binary files using tofile(), savez(), and save() methods.
How to Reverse Array in NumPy (np.flip, np.flipud, np.fliplr, and Slicing Examples)
Let’s learn how to reverse array in NumPy using np.flip() for all axes, np.flipud() for vertical reversal, np.fliplr() for horizontal reversal, and slicing tricks.
How to Convert NumPy Array to Python List (Using .tolist() and list() Methods)
Let’s see how to convert NumPy array to Python list using the preferred ndarray.tolist() method or the built-in list() constructor for seamless type conversion.
How to Convert a List of Characters to a String in Python (With and Without join)
Let’s see how to convert char to string in Python. Asume given char list is : Char : [‘m’, ‘y’, ‘c’, ‘h’, ‘a’, ‘r’] And we would like to convert it to: String : mychar There are a few ways to do that:
How to Draw Pyramid Patterns in Python (Numbers, Symbols, Letters and Hollow Pyramids)
Let’s embark on an exciting journey to learn how to draw different Python pyramid patterns, including numeric, hashed, hollow, inverted and letter pyramids.
How to convert cm to inch?
Let’s see how to handle unit conversion in Python. I’m taking cm to inch conversion as an example.
How to Calculate the Frequency and Percentage of a Given Letter in a Text File Using Python
You will learn how to calculate the frequency and percentage of a given letter in a text file using Python, working with strings loaded from an external file.
How to Calculate Age from Date of Birth in Python Using Datetime (Years, Months, Days)
This tutorial shows how to calculate age from date of birth in Python using the datetime module, returning your exact age in years, months, and days. The script will ask for the day, month, and year of your birth, and it will output your exact age. With a few simple changes, this Python age calculator Continue reading
