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:")
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 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 )
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 )
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:")
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.
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 )
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 )
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 |
|---|
鈻讹笍 3Speak