Python 3 - Data types - Using a set

A set is a container that enables a way to retrieve unique data inside this container.

It means that if you want to be sure that only one occurrence is present in a container, you have to choose the set one.

For the form, we have to use the curly brackets to declare a set.

Python 3 - Data types - Using a tuple

A tuple is like a list but without possibility to modify it.

We can see a tuple like something declared once to be sure data inside won't be modified in the future.

Python 3 - Data types - Using a list

The list data type is like a container.

So we can manage it like an array in other programming languages.

In this tutorial of the Python 3 data type list, we are going to play with all methods of the list.

Python 3 - General programming - Statements

In Python 3 we cannot increment a variable directly with "++" before or after this variable.

We have to add + 1 on the variable to increment it.
That's a bit annoying but life is life.

In this tutorial we are going to see examples of the Python 3 statements.

C++ - OpenGL - Hello World!

After installing the OpenGL libraries on your system, you would definitely want to display something on the screen.

You are right!

So let's see this with an Hello World! OpenGL 2.1 tutorial.

C++ - OpenGL - Installation

For this first OpenGL tutorial, we are going to see how to install OpenGL on GNU/Linux and Windows operating system.

UNIX & GNU/Linux - System calls - Using wait()

The wait() syscall is often used with the fork() syscall.

Indeed, with the wait() syscall we can be sure that the child will be executed before the parent process.
In a trivial vision, this is like mutexes for threads.

UNIX & GNU/Linux - System calls - Difference between fork() and vfork()

The fork() and vfork() syscalls are different.

The fork() syscall generates two identical processes with separate memory.
The vfork() syscall generates two processes that share the same memory.

C - Mathematics - Using the Luhn algorithm

Maybe you wonder if your credit card has a correct number?

How to know that?
With the Luhn formula!
This is what we are going to see in this Luhn tutorial.

This algorithm can say if it is a good or a bad credit card number.

C - Mathematics - Find prime numbers

If you have a good computer, you can maybe try to find the last prime number that nobody found yet.

Indeed, you can even win a prize for that!
But you have to find a number with more than millions of digits.

I'm sure you can do it.

Pages

Subscribe to BadproG.com RSS