Python brings a lot of freedom compared to other languages in terms of simplicity and clarity. Readability in its general structure is its most important advantage.
Now let’s experience it by coding in order to have practical knowledge.
Have the result return True in the absence of both results with a function. That is, determine if this condition can be satisfied for a third condition.
The function we are going to create will check for cases where there are no two separate cases, and as a result, it will return True.
def check_situation(situation1, situation2)…
One of the great ways to devote more time to Python expertise is to examine coding examples where many of the challenges are addressed separately.
Thus we are trying to understand Pythonic solutions in this series of posts.
So let’s go inside!
Write a program that takes words as input and sorts them alphabetically. These entries will be stored as comma-separated. You are expected to get a result similar to this:
input: bag, house, money, car, pool → output: bag, car, house, money, pool
In Python, we can separate the words with the split function. And to call this distinction…
Weekends can be a good time to practice with Python. For this reason, we continue the series we started last week. I hope that the information in the basic and advanced level as in the examples is useful for you, too.
So let’s start coding!
First of all, let’s choose to use
in range(21) when creating a list of numbers for this challenge. And when printing this, try the scroll down option as rows to show odd and even ones in a separate column.
In Python, a list of numbers is created with
in range(). In fact, here we will…
After stepping into Python’s own world, the easiest way to survive in this magical world is undoubtedly more practice. This is exactly what we are aiming at with the 1st episode of a series that we plan to create today.
This series will be a weekend read for real Python practitioners, as well as short but useful Python exercises. And thanks to this, I hope to refresh the knowledge to better remember some features, functions, methods.
The examples are not the simplest Python explanation. Therefore, it will not be created in a specific chronology like a tutorial. …
Very interesting projects for language studies have been developed in recent years. NLP technologies played an extremely impressive role in this. In fact, it had been a long time since Google had set out to understand searches better than ever.
However, after the advent of BERT, quite interesting developments took place. And we have quickly reached a place where the latest evolution of NLP technology is democratized. Today, more and more people want to develop their projects or brands by producing fine results.
Let’s look at the numbers to better understand the point we have reached.
Pre-trained BERT offers NLP…
In the previous article, we tried to look at time series theoretically. You can continue here to get a general idea 👇
In this article, we will simply give some examples for a better understanding of time series. We will follow a sequence like the one below.
There is a fairly long list of things to do with machine learning. It is not possible to understand this all at once. However, it is possible to make some special applications more understandable thanks to the projects devoted to training.
It makes sense to create titles for this. So generalized concepts are always a better option to understand which tool is more useful in which project.
For example, to get colorful frames from black and white movies with machine learning:
NLP tells us that we have to do a lot of similar things in order. These are very practical thanks to the TensorFlow and Keras libraries, which can be easily integrated into the system. So the first thing will be to import them. In fact, our job is to be able to use existing APIs. Because wheels are already invented!
NLP; is a set of operations designed to help the machine to encode a sentence structure meaningfully with the help of vectors. When we set out with these existing basics, we can see standards in small scale and similar jobs…
Compositions; It is a programming technique used when establishing relationships between classes and objects. Understanding compositions is important in object-oriented programming. Compositions can be a good idea in Python and software language to make a particular structure dynamic. Because in this way, we fill the place of complex code blocks with more compact material.
Through the compositions, we actually state the relationship between the two classes. And in this way, the code can be reused. This has a common similarity with the concept of inheritance. As a result, we obtain more complex structures by combining objects between different types.
Recursion functions are functions that reuse themselves. Its general goal is to be able to solve problems that are difficult and likely to take a long time more easily. Writing code as a recursive function is actually not too complicated. However, it is an important task of an IT professional to examine this tool closer to know where to use it.
For those dealing with coding in general, the tasks to be automated should be performed in the best way possible. Simplicity and clarity can meet the best expectations at this stage. …