Let’s come and go deeper ;)

Recursion occurs when a thing is defined in terms of itself or of its type. In computer science is very famous to solve a problem calling itself several times until a stop condition.

So before study an example, let’s review some concepts:

Like we said before, recursion means call itself.

As a computer programming technique, this is called divide and conquer and is key to the design of many important algorithms. Divide and conquer serves as a top-down approach to problem solving, where problems are solved by solving smaller and smaller instances

If…


Fun topic to totally understand the behaviour between them

Mutable vs Immutable

Before we will start to study the Mutable and Immutable case of Python3, we need to understand Why everything is an object in Python!

Introduction: What means “everything is an object”?

Firstly, we need to know that Python is a different language than low-level languages programming like C, and it is because Python is an Object-Oriented Programming (OOP) language.

And this is the reason why the Python programming language consists of objects. So it allows user to have their own methods and attributes without creating them each time they need it. …


How object and class attributes work

What can happen if we define a Human like an OOP? -> class Human

What’s a class attribute?

Class attributes are attributes which are owned by the class itself. They will be shared by all the instances of the class. Therefore they have the same value for every instance. We define class attributes outside all the methods, usually they are placed at the top, right below the class header.


A library is a file containing several object files, that can be used as a single entity in a linking phase of a program.

Why use libraries?

Because the library is indexed, so it is easy to find symbols (functions, variables, and so on) in them. For this reason, linking a program whose object files are ordered in libraries is faster than linking a program whose object files are separate on the disk. Also, when using a library, we have fewer files to look for and open, which even further speeds uplinking.

How do they work? And What are the differences between static and dynamic libraries?

A static library or statically-linked library is a set of routines…


A little syntax of Python from C to be easy your life in this path :)

Ascci numbers: ‘a’ => ord(‘a’)
Printf -> Print so %c => {:c} , end=””(not \n)
logic operators: || => or
&& => and
syntax: tab => 4 espacios

betty => pep8

Print

If you want to print “\n”

print(r “hola\n”) = hola\n = c:\name (desabilitar el salto de linea)
also you can use 3x ‘ -> print(“‘ sdf “”)
print(“‘ hola
que tal “‘) = hola
que tal

Math

potencia: => **
división / => decimales
división enteros // => enteros

Loop:

for i in range(a,b): #Loop…


A library is a file containing several object files, that can be used as a single entity in a linking phase of a program.

Because the library is indexed, so it is easy to find symbols (functions, variables, and so on) in them. For this reason, linking a program whose object files are ordered in libraries is faster than linking a program whose object files are separate on the disk. Also, when using a library, we have fewer files to look for and open, which even further speeds uplinking.

A static library or statically-linked library is a set of routines…


By Katherine Soto & Renato Leon

ls -la *.c simulation in shell

Hello! Today we will talk about how Shell works. That’s why, we will run the example of (“ls -la *.c) in our shell program: “simple_shell”, which is a project that we developed the last 15 days with C language with the goal of replicate the behaviour of shell.

First at all, you can see the logical program with the flowchart image.


First, we need to know the 4 steps of C compilation process

Components of Compiler
  1. Preprocessor: Remove comments and include header files in source code, replace macro name with code

Katherine Soto

Software engineer in progress

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