Python - Print function - mathematical operations - sololearn [ENG-ESP] [ENG-ESP].

avatar

▶️ Watch on 3Speak


@josuerr291.gif


English

Hello dear geek zone community and friends of hove, how are you doing? how are you doing? visitors of this post, I hope you enjoy the following lines and you can learn something from what you are going to read.

Nowadays technology is too important. It seems that technology is advancing very fast, many years ago technology was advancing slowly, now it is advancing faster and faster. It seems that the barrier because technology is getting slower and slower has been shortening and there is a kind of competition that gives an increase in who has more technological advances.

And at the same time technology goes hand in hand with the recently created branch of programming. It is practically the automation of all actions in everyday life, so technology goes hand in hand with programming and it is increasing.

Nowadays I could think that programming is one of the most important things that one can study and learn. Nowadays I believe that without it in the future we would be little instead of a lot that is why today I bring you this content about programming. I continued to bring you my chapters about python programming.

I have studied programming language and c++ but unlike with this language is much simpler, I see that do not need so many signs how in other programming language. So today I leave you with the introduction in print. In the last chapter we learned about words and screen printing with this print function but in this chapter we will learn the mathematical functions in print. How Mathematical operations are executed in the print function.

As we saw in the last chapter, words like these are enclosed in parentheses and quotation marks.
print("the division of 4 by 4 equals:")


Division:

And the division math operations are performed as follows without quotation marks.
print( 4 / 4 )

NOTE: It is normal to put spaces to make it easier to read each of the signs of the operation.

  • The printed result:
    the division of 4 by 4 is equal:
    1.0

Additions:

The mathematical operations of Additions are performed as follows without quotes, Only with the use of the + operator and the numeric characters to be added.
print("the sum of 4 and 4 is equal:")
print( 4 + 4 )

  • The printed result:
    the sum of 4 and 4 is equal:
    8

Subtract:

This operation only needs the d subtract operator and the numeric values without quotes for the operation and will look like this.
print("the subtraction of 4 minus 4 equals:")
print( 4 - 4 )

  • The printed result:
    subtraction of 4 minus 4 equals:
    0

Parentheses inside parentheses:

If we have in a mathematical operation several operations inside and we want to control which of the operations will be performed first, then we must place inside parentheses the ones we want to be performed first.
print( 4 + ( 4 * 4 ) - 4 )

  • First the one inside the internal parenthesis is executed, the multiplication.

  • Then we execute the operation that is outside the internal parenthesis on the left side, the addition.

  • Finally the one outside the inner parentheses on the left side, the subtraction, is executed.

  • The result is printed:
    the sum of 4 and 4 is equal:
    8

Thank you very much for your reading and your comment.

content sources

Translated with www.DeepL.com/Translator (free version)


Español

Hola querida comunidad de geek zone y amigos de hove ¿cómo les va? ¿cómo les va? visitantes de este post, espero disfruten las siguientes líneas y pueden aprender algo de lo que vayan a leer.

En la actualidad es demasiado importante la tecnología. Parece que la tecnología va avanzando muy rápido hace muchísimos años atrás la tecnología avanzaba lento ahora avanza cada vez más rápido Parece que la Barrera porque la tecnología sea cada vez más lenta se ha ido acortando y hay una especie de competencia que da un aumento por quién tiene más avances tecnológicos.

Y al mismo tiempo la tecnología va de la mano con la rama que se creó hace poco la programación. Prácticamente es la automatización de todas las acciones en la vida cotidiana entonces la tecnología va de la mano con la programación y cada vez esta en aumento.

En la actualidad yo podría pensar qué la programación es una de las cosas más importantes en la que uno puede estudiar entrar y aprender. En la actualidad creo que sin ella en el futuro seríamos poco en vez de mucho es por esto que hoy Les traigo este contenido acerca de programar. Continuó trayéndoles mis capítulos acerca de la programación en python.

Yo he estudiado lenguaje de programación y c++ pero a diferencia con Este lenguaje es muchísimo más simple, veo que no hacen falta tantos signos Cómo en otro lenguaje programación. Así que hoy lo dejo con la introducción en print. En el capítulo pasado aprendimos sobre las palabras y la impresión en pantalla con esta función print pero en este capítulo aprenderemos las funciones matemáticas en print. Cómo se Ejecutan las operaciones Matemáticas en la función print.

Como ya vimos en el capitulo pasado se encierran dentro de paréntesis y comillas las palabras como estas.
print("la división de 4 entre 4 es igual:")


División:

Y las operaciones de matemáticas de división se realizan de la siguiente manera sin comillas.
print( 4 / 4 )

NOTA: Lo normal es que se coloquen espacios para leer mas fácil cada uno de los signos de la operación.

  • El resultado imprimido:
    la división de 4 entre 4 es igual:
    1.0

Sumas:

Las operaciones matemáticas de Sumas se realizan de la siguiente manera sin comillas, Solo con el uso del operador + y los caracteres numéricos que e sumaran.
print("la suma de 4 y 4 es igual:")
print( 4 + 4 )

  • El resultado imprimido:
    la suma de 4 y 4 es igual:
    8

Restar:

Esta operación solo necesita el operador d resta y los valores numéricos sin comillas para la operación y quedara así.
print("la resta de 4 menos 4 es igual:")
print( 4 - 4 )

  • El resultado imprimido:
    la resta de 4 menos 4 es igual:
    0

Paréntesis dentro de paréntesis:

Si tenemos en una operación matemática varias operaciones dentro y queremos controlar cual de las operaciones se realizara primero, entonces debemos colocar dentro de paréntesis los que queremos que se realicen primero.
print( 4 + ( 4 * 4 ) - 4 )

  • Primero se ejecuta la que esta dentro de los paréntesis internos, la multiplicación.

  • Luego se ejecuta la operación de la que esta fuera de los paréntesis internos del lado izquierdo, la suma.

  • Por ultimo se ejecutara la que este fuera de los paréntesis internos del lado izquierdo, la resta.

  • El resultado imprimido:
    la suma de 4 y 4 es igual:
    8

Muchas gracias por tu lectura y tu comentario.

fuentes del contenido


23tbANtZ3arySuvEVCZHWfeqca5jpedmUUdzUJbSJASqA7GHGAgKRQghT31HXd1q8dXhB.png

@josuerr291.gif


▶️ 3Speak



0
0
0.000
1 comments
avatar

Do you know the legal name of @themarkymark ???? It is needed to contact his local police station. Any information to his whereabouts would be much appreciated.

0
0
0.000