Sign in

Software Development & Machine Learning || research and creation for the innovation of knowledge

Code journey continues with Python

Photo by Spikeball on Unsplash

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.

1.Challenge: [Beginner] Definition check for three Situation

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)…

We continue the Python Code Challenges where we left off

Photo by Brett Jordan on Unsplash

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!

1.Challenge: [Beginner] Make a sorted list

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…

Continue coding with Python at the weekends

Photo by Karsten Winegeart on Unsplash

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!

1.Challenge: [Beginner] Show odd and even numbers in a loop in a separate column

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…

Training Weekends with Python Exercises

Photo by Clique Images on Unsplash

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. …

Learn to get appropriate answers to questions for complex texts thanks to the pre-trained model ( )

Photo by National Cancer Institute on Unsplash

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.

BERT in Numbers

Pre-trained BERT offers NLP…

We continue to focus on Time Series Analysis. We will estimate the fertility rate for 2021 in Germany by all methods.

Photo by Tim Hüfner on Unsplash

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.

  • Simple Average Method
  • Moving Averages
  • Exponential smoothing
  • Trend Analysis
  • Seasonal Fluctuations and Proportioning Method in Trend

1) Simple Average Method

Creating machines as predictors with time series and a specific database

Photo by Aron Visuals on Unsplash

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:

You will need a model developed with deep learning. Again, for this, the model must be saturated with enough…

With Python — TensorFlow we can use facilitating paddings for sentence fragmentation and analysis in NLP stages. So how?

Photo by João Vítor Heinrichs from Pexels

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…

Understanding and applying compositions in a short time

Photo by Juan Carlos Becerra on Unsplash


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.

Why Composition?

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.



We examine recursion functions and examples that can be used efficiently

Photo by Daria Nepriakhina on Unsplash

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.

Why Is It Important?

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. …

Kurt F.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store