782 entries found:
) Next »
Loops are one of the fundamental concepts of programming languages. Loops are handy when you want to repeat a specific block of code a number of times until a given condition is met. This tutorial covers the basics of while loops in Python. We'll also show you how to use the else clause and the break and continue statements.
This tutorial covers the basics of while loops in Python. We'll also show you how to use the else clause and the break and continue statements.
Jinja2 is a templating language for Python. While it got its start on the web for use with the Flask framework, it is popular in many other places. Both Flask and Pelican?use it to template HTML pages, allowing seperation between style and content.
Data science is a domain of knowledge that spans programming languages. Some are well-known for solving problems in this space, while others are lesser-known.?This article will?help you become familiar?with doing data science with some popular languages.
With virtual environments, you can isolate your software and avoid version conflicts.. Python virtual environments allow you to install Python packages in an isolated location for a particular application, instead of installing them globally. This articles explores what the advantages are and how you can quickly get started.
In this edition of our open source news roundup, we take a look at new features for Raspbian, Wireguard and Linux kernel, free Python course from the NSA and more!
Developers already have numerous options from the likes of Microsoft and Google for learning how to code in the popular Python programming language. But now budding Python developers can read up on the National Security Agency's own Python training materials.
This guide explains how to build Python 3.8 on CentOS 8 from the source code. We’ll also show you how to create a virtual environment.
Decision making is one of the most fundamental concepts of computer programming. Python supports the common flow control statements found in other languages, with some modifications. The if control statement is one of the most basic and well-known statements that is used to execute code based on a certain condition.
I met Brendan Becker working in a computer store in 1999. We both enjoyed building custom computers and installing Linux on them. Brendan was always involved in several technology projects at once, ranging from game coding to music composition. Fast-forwarding a few years from the days of computer stores, he went on to write pyDance, an open source implementation of multiple dancing games, and then became the CEO of music and gaming event MAGFest. Sometimes referred to as "Mr.
Jannis Leidel is part of the Jazzband community. Jazzband is a collaborative community that shares the responsibility of maintaining Python-based projects.
Jazzband was born out of the stress of maintaining an open source project alone for a longer time. Jannis is a roadie, which means he does administrative tasks and makes sure the people in the band can play when they want.
Being a Python coder, I like to experiment with all kinds of open source tools shared on the major platform Github through which coders from the whole world develop projects by collaborating with each other. As an Instagram user, I decided to try some Python applications which can help to interact with it from the command line.
On Kickstarter: a “Sania Box Embedded Computer Kit” for STEM education developed by 13-year old Sania Jain that combines a Raspberry Pi 4 with a kid-friendly, sensor-equipped add-on board and Python coding lessons. Despite continual efforts by the Raspberry Pi Foundation to remind us, it’s easy to forget that the ubiquitous Raspberry Pi was launched […]
Python has a few built-in modules that allow you to delete files and directories. This tutorial explains how to delete files and directories using functions from the os, pathlib, and shutil modules.
2DayGeek: This tutorial shows you about installing Python 3 on Centos 6.
Most of the computer geeks are familiar with the Internet Download Manager tool. Although it is one of the best among download managers; being a soldier of open source software, I decided to share pyIDM as an alternative for anyone who is passionate about computer programming.
Being able to validate your network connection speed puts you in control of your computer. Three open source tools that enable you to check your internet and network speeds at the command line are Speedtest, Fast, and iPerf.
Speedtest is an old favorite. It's implemented in Python, packaged in Apt, and also available with pip. You can use it as a command-line tool or within a Python script.
Install it with:
This step-by-step tutorial explains how to install Anaconda Python distribution on Linux operating system.
Imagine using Python's IDLE interface to edit text. You would be able to load files into memory, edit them, and save changes. But every action you perform would be defined by a Python function. Making a word all capitals, for instance, calls upper(), opening a file calls open, and so on. Everything in your text document is a Python object and can be manipulated accordingly. From the user's perspective, it's the same experience as any text editor.
Tuptime, the uptime command's alternative, is a command line utility to find Linux system uptime details.
Pip is a package management system that allows you to install, remove, and otherwise manage software packages written in Python. It can be used to install packages from the Python Package Index (PyPI) and other indexes. In this tutorial, we will explain how to install pip for Python 2 and 3 on CentOS 8 and cover the basics of how to manage Python packages with pip.
Last year, I brought you 19 days of new (to you) productivity tools for 2019. This year, I'm taking a different approach: building an environment that will allow you to be more productive in the new year, using tools you may or may not already be using.
Installing Chrome and Selenium can be quite challenging. This post goes through step by step tutorial to install Selenium and Chrome. I have also put together a small section at the end to cover "most commonly errors" during installation.
OpenStack stores and manages a bunch of log files on its Overcloud nodes and Undercloud host. Therefore, it's not easy to use OSP log files to investigate a problem you're having, especially when you don't even know what could have caused the problem.
For more than a year, setV has been hidden away within my bash_scripts project, but it's time for it to become public. setV is a Bash function I use as an alternative to virtualenvwrapper. It provides basic features that enable you to do things such as:
OpenCV (Open Source Computer Vision Library) is an open-source computer vision library and has bindings for C++, Python, and Java. It is used for a vast range of applications, including medical image analysis, stitching street view images, surveillance video, detecting and recognizing faces, tracking moving objects, extracting 3D models, and much more.
This post explains the most frequent questions asked by users in Python Pandas. I have tried to explain each question with examples.
Check out how to rename multiple files using vim. There are 3 vim utilities that I have presented to rename multiple files.
Piwheels automates building Python wheels (pre-compiled Python packages) for all of the projects on PyPI, the Python Package Index, using Raspberry Pi hardware to ensure compatibility. This means that when a Raspberry Pi user wants to install a Python library using pip, they get a ready-made compiled version that's guaranteed to work on the Raspberry Pi. This makes it much easier for Raspberry Pi users to dive in and get started with their projects.
conrad is a free and open source command-line tool designed to help you track conferences and meetups. The tool is written in Python.
Python is a high-level, object-oriented programming language known for its simple syntax. It is consistently among the top-rated programming languages for building RESTful APIs.
This is part 10 in an ongoing series about creating video games in Python 3 using the Pygame module. Previous articles are:
Anaconda is the most popular Python/R data science and machine learning platform. It is used for large-scale data processing, predictive analytics, and scientific computing. In this tutorial, we will explain how to install Anaconda Python Distribution on CentOS 8.
I'm not quite dead, mutters 2.7 as rigor mortis sets in
With the arrival of 2020, the Python Clock has stopped ticking, marking the end of development for the Python 2 programming language.…
This is part 9 in an ongoing series about creating video games in Python 3 using the Pygame module. Previous articles are:
Hanukkah famously has eight nights of celebration. The Hanukkah menorah, however, has nine candles:?eight regular candles and a ninth that is always offset. It is called the shamash?or shamos, which loosely translates to meaning "servant" or "janitor."
The shamos is?the candle that lights all the others: it is the only candle whose fire can be used, not just watched. As we wrap up our series on the Zen of Python, I see how namespaces provide a similar service.
A language does not exist in the abstract. Every single language feature has to be implemented in code. It is easy to promise some features, but the implementation can get hairy. Hairy implementation means more potential for bugs, and, even worse, a maintenance burden for the ages. The Zen of Python has answers for this conundrum.
Python is always evolving. The Python community has an unending appetite for feature requests but also an unending bias toward the status quo. As Python gets more popular, changes to the language affect more people. The exact timing for when a change happens is often hard, but the?Zen of Python offers guidance.
The principle of least surprise is a guideline when designing user interfaces. It says that when the user performs an action, the program should do whatever would surprise the user the least. This is for the same reason kids love reading the same book over and over again: there is nothing more comforting to people than the ability to predict and have those predictions come true.
When LinkedIn released its third annual Emerging Jobs report, engineers everywhere said, "Amen." More than half the list consists of engineering roles, with new fields like robotics appearing for the first time. But data science had a strong showing as well. The role shows 37% annual growth, topping that aspect of the Emerging Jobs list for the third year in a row.
Handling "exceptional conditions" is one of the most debated issues in programming. That could be because the stakes are high: mishandled error values can bring?down even the largest systems. Since "exception conditions," by nature, are the least tested but occur with unpleasant frequency, correctly handling them can often distinguish a system that horror stories are told about to a system that "just works."
Manage Python packages using Pipenv on Linux.
Software development is a discipline rife with trade-offs. For every choice, there is an equally defensible but opposite choice. Make a method private? You're encouraging copy-paste. Make a method public? You're committing prematurely to an interface. Software developers make hard choices every minute. While all the principles in the Zen of Python cover trade-offs to some extent, the following principles take the hardest, coldest?look at some trade-offs.
Python had a big year in 2019. According to popular resources like GitHub and Stack Overflow, it's trending as the second most popular language in the world.
The Zen of Python is called that for a reason. It was never supposed to provide easy-to-follow guidelines for programming. The rules are specified tersely and are designed to engage the reader in deep thought.
Python contributor Tim Peters introduced us to the Zen of Python in 1999. Twenty years later, its 19 guiding principles continue to be relevant within the community. We start our Pythonukkah celebration—like Hanukkah, a festival of lights—with the first two principles in the Zen of Python: on beauty and explicitness.
This post talks in detail about how to generate random numbers in Python. Every concept is explained through an example. Please read it.
Learn how to draw histogram In Python using pandas, matplotlib and seaborn libraries.
Learn about how to run bash commands in Python.
) Next »