Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • Find the coefficients of the Quadratic Equation of the given two roots with Python

    In this example, you are expected to find the coefficients of the quadratic equation of the given two roots (x1 and x2) with a python function.

    The Quadratic Equation looks like this ax^2 + bx + c = 0. Our mission is to find the coefficients of the equations which is a, b, and c. The return type from the function is a Vector containing coefficients of the equations in the order (a, b, c). Since there are infinitely many solutions to this problem, we fix a = 1.

    Below is the method to find the return Vector.

  • Episode #188: Will the be a "switch" in Python the language?
  • Python 3.9.0b4

    Python 3.9 is still in development. This release, 3.9.0b4, is the fourth of five planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.

  • Python 3.9.0b4 is now ready for testing

    On behalf of the entire Python development community, and the currently serving Python release team in particular, I’m pleased to announce the release of Python 3.9.0b4.

  • 10 most useful Python Dictionary Methods

    Dictionary is used in python to store multiple data with key-value pairs. It works like an associative array of other programming languages. The curly ({}) brackets are used to define a dictionary and the key-value is defined by the colon(Smile. The content of the key and value can be numeric or string. Python has many built-in methods to do different types of tasks on the dictionary data such as add, update, delete, search, count, etc. 10 most useful dictionary methods of python are explained in this article.

  • 10 most useful Python String Methods

    The string data is the characters of an array that contains one or more characters as value for any programming language. All printable characters such as alphabets, numbers, special characters, etc. are commonly used in the string data. ASCII code and Unicode are mainly used for converting any character to a number that the computer can understand. Python uses Unicode characters for string data. We need to perform different types of tasks based on the programming purpose on the string data such as searching the particular character or characters, capitalizing the first character, making all characters uppercase, etc. Python has many built-in string methods to do these types of tasks very easily. The 10 most useful python string methods are explained in this article.

More in Tux Machines

Software: Bashtop, Cointop and Auto-cpufreq

  • Bashtop – A Resource Monitoring Tool for Linux

    Bashtop is a terminal-based resource monitoring utility in Linux. It’s a nifty command-line tool that intuitively displays statistics for your CPU, memory, running processes, and bandwidth to mention just a few. It ships with a game-inspired and responsive terminal UI with a customizable menu. Monitoring various system metrics is made easy by the neat arrangement of various display sections. With Bashtop, you can also sort processes, as well as easily switch between the various sorting options. Additionally, you can send SIGKILL, SIGTERM, and SIGINT to the processes that you want.

  • Tracking Your CRYPTO INVESTMENTS Is Dead Simple With Cointop
  • Automatic CPU Speed & Power Optimizer Auto-cpufreq 1.2 Released

    Auto-cpufreq, automatic CPU speed & power optimizer for Linux to improve battery life, released version 1.2 with AMD support. Different to cpufreq indicator and / or TLP, Auto-cpufreq automatically make “cpufreq” related changes based on active monitoring of laptop’s battery state, CPU usage and system load. Ultimately allowing you to improve battery life without making any compromises.

today's howtos

Security, Fear, Uncertainty, Doubt

SUSE/OpenSUSE: Tumbleweed, YaST and Corporate Stuff

  • Skopeo, xxHash, GCC 10.2 are Among Updates in Tumbleweed

    openSUSE Tumbleweed had continuous daily snapshots with a handful of software package updates this week. Many minor-version updates and one major-version update became available to Tumbleweed users and the newest snapshot, 20200804, updated the iso-codes package, which lists country, language and currency names; the new 4.5.0 version updated translations and the subdivision names for Belarus. The Greybird Geeko theme was updated to improve contrast of gtk2 selection background color. The desktop calculator qalculate was updated to version 3.12.0 and improved exact simplification of roots. The fast hash algorithm xxhash 0.8.0 stablized the XXH3. Both libyui-ncurses and ncurses had minor updates. The snapshot is trending stable with a rating of 97, according to the Tumbleweed snapshot reviewer.

  • Digest of YaST Development Sprint 105

    Although a significant part of the YaST Team is enjoying their well deserved summer vacations, the development wheel keeps turning. During the latest two weeks we have fixed quite some bugs in several parts of (Auto)YaST. But listing fixed bugs it’s quite boring, so let’s focus on more interesting stuff we have also achieved.

  • Open Source for the Edge at IoT World

    As technologies converge to drive new innovation at the edge, organizations are working together more than ever to pave the road forward by combining the likes of 5G, AI/ML, Embedded Systems, High Performance Computing, Kubernetes, private/public environments and more. Companies are bringing specific domain expertise to the table, and SUSE is uniquely positioned with 28 years of Linux and open source expertise to serve as the foundation for developing, distributing and managing edge systems and the critical workloads they will support.

  • SUSE Partner Summit – Coming to a digital platform in mid-September!