In this blog, I am going to give you more information about string sin Python. Strings could be pretty simple things, just some letters after each other wrapped by apostrophes. I already explained the basic information about strings in my blog about the basic types of Python. You can always consult that information back. In …
Author Archives: ruth1432
List and Tuples in Python
In this blog, I am going to give you some more information about lists and tuples. Hopefully you fully understand what both are and when to use them after this blog. So let’s get started. Lists The first thing that I am going to explain is a list. A list is very easy to make …
Which repetition should you use in Python?
There exist different kind of repetition that you can use in python; you can use loops (if, for or while) and recursion, I already explained them in my previous blogs. In this blog I am going to cover the subject of when using what kind of repetition. First the loops. You use the if loop …
Recursion in Python
Till now, if I wanted to repeat things I always used if, while and for loops as explained in my previous blogs. But that is not the only way to repeat things, another solution is to use recursion while programming in Python. With recursion you are dividing the problem in smaller problems that will be …
Using for loop in Python
There are two different kind of loops in Python that you can distinguish. The first is the indefinite loop. That is the while loop, that I already explained in my previous blog. This is an indefinite loop, because it goes on till it meets the condition that is given in that loop. The other kind …
Using while in Python
In this blog, I am going to explain some more about the use of while in your Python code. You can use while if the condition that you have needs to state as long as. The actual meaning of while is namely as long as. I am going to explain it with the easiest example. …
Using nesting in Python
In my previous blog, I explained a lot about using if, elif and else in Python. In this blog I am going further on that subject and we are going to use nesting in these conditions. Nesting is actually using conditions in conditions. We are going to use the code that we wrote in my …
Using conditions in Python
In this blog I am going to tell something about working with the conditions that Python has. There are three different conditions in Python: if, else and elif. I am going to explain them all by using them in a code. For exercise 1 that we previously made to calculate what the date of the …
Using modules in Python
Modules are useful to split your program/code in different files. In that way it becomes easier to use or adapt different parts separately.Just the definition of a module is a file that consist Python code. In this blog I am going to explain you the basic things about using modules while programming in Python. The …
Creating modules in Python
As I explained in the blog about using modules in Python, is it very practical to use modules in Python to edit separate parts of your code. Besides that gives it also a better overview in your script and I already explained in previous blogs how important a good overview over your code is. I …