Python Pool: How to Solve TypeError: ‘int’ object is not Subscriptable
IntroductionSome of the objects in python are subscriptable. This means that they hold and hold other objects, but an integer is not a subscriptable object. We use Integers used to store whole number...
View ArticleReal Python: The Real Python Podcast: It's Been a Year!
This week, the Real Python Podcast is reaching its fiftieth episode! It’s been quite a year, full of sharing and learning and connecting in the Python community. We’re looking forward to bringing you...
View ArticlePython for Beginners: What is a good comment/code ratio?
A comment is a piece of code that isn’t executed by the compiler or interpreter when the program is executed. Comments can only be read when we have access to the source code. To answer the question...
View ArticlePodcast.__init__: Analyzing The Ecosystem of Python Data Companies With Tony Liu
There are a large and growing number of businesses built by and for data science and machine learning teams that rely on Python. Tony Liu is a venture investor who is following that market closely and...
View ArticlePyCharm: PyCharm 2021.1 EAP 4: WSL 2 Support and Faster Indexing
This EAP build brings several nice additions to WSL 2 support, makes indexing faster, and introduces a GitHub pull request template.As usual, please read the blog post, try out the new features, and...
View ArticleReal Python: Django View Authorization: Restricting Access
Django provides tools for both authentication and authorization. Django view authorization is typically done with decorators. This course will show you how to use these view decorators to enforce...
View ArticleThe Digital Cat: First-class objects in Python: generic code, wrappers, and...
One of the most important concepts that you can find in Python (as well in other languages like JavaScript, Ruby, and Scala, just to name some of the most important ones) is that of first-class...
View ArticlePyCoder’s Weekly: Issue #463 (March 9, 2021)
#463 – MARCH 9, 2021View in Browser »Poison Packages: User Hits Python Community With 4000 Fake Modules Recently, a PyPI user going by the name “Remind Supply Chain Risks” uploaded nearly 4000 fake...
View ArticleJohn Cook: Broadcasting and functors
In my previous post, I looked at the map Δ that takes a column vector to a diagonal matrix. I even drew a commutative diagram, which foreshadows a little category theory.Suppose you have a function f...
View ArticlePython Pool: Why is Numpy asarray() Important in Python?
What Exactly is Numpy asarray?The numpy asarray() function is used when need to convert an input to an array. Whether the input is a list, lists of tuples, tuples, tuples of tuples, tuples of lists,...
View ArticlePython Pool: Various Ways to Find Standard Deviation in Numpy
IntroductionIn this tutorial, We will learn how to find the standard deviation of the numpy array. we can find the standard deviation of the numpy array using numpy.std() function. we will learn the...
View ArticleProgramiz: Python if...else Statement
In this article, you will learn to create decisions in a Python program using different forms of if..else statement.
View ArticlePyPy Development: PyPy's blog has moved
For many years, PyPy has been publishing blog posts here at https://morepypy.blogspot.com. From now on, the posts will be at https://pypy.org/blog. The RSS feed has moved to https://pypy.org/rss.xml....
View ArticleRed Hat Developers: Write your own Red Hat Ansible Tower inventory plugin
Ansible is an engine and language for automating many different IT tasks, such as provisioning a physical device, creating a virtual machine, or configuring an application and its dependencies. Ansible...
View Articledeath and gravity: Struggling to structure code in larger programs? Great...
So, you're an advanced beginner – you've learned your way past Python basics and can solve real problems.Maybe you're about to embark on your first larger project, but feel at a loss about where to...
View ArticleStack Abuse: Python: How to Print Without Newline or Space
IntroductionThe print() function in Python appends a newline to the output when displayed on the tty (teletypewriter A.K.A the terminal). When you don't want your message displayed with newlines or...
View ArticlePython for Beginners: String Splicing in Python
Python strings are sequences of characters enclosed in single, double or triple quotes. Strings are immutable in python. We can access each character of a string using string splicing in python....
View ArticleReal Python: Build a Contact Book With Python, PyQt, and SQLite
Building projects is arguably one of the more approachable and effective ways of learning to program. Real projects require you to apply different and varied coding skills. They also encourage you to...
View ArticleIan Ozsvald: My first commit to Pandas
I’ve used the Pandas data science toolkit for over a decade and I’ve filed a couple of issues, but I’ve never contributed to the source. At the weekend I got to balance the books a little by making my...
View ArticlePyCharm: Interactive Visualizations in PyCharm and Datalore
The Lets-Plot library is an open-sourced interactive plotting library developed by JetBrains for Python and Kotlin. Its architecture was inspired by the ggplot library for the R language, and is built...
View Article