Ejercicio 5

--Originally published at Python student

En este ejercicio lo que se hizo es que al momento de dar una palabra al programa este agrega la misma palabra a la ya dada pero al revés.

El ejemplo en la imagen es que el usuario escribe "This is so fun" y ya el programa lo que le regresa es "tothohisos isos fofunon".

5.png

Quiz 4 (squares)

--Originally published at Python student

At first I thought that it was a matter of summing the result of square roots but it was only the square of 3 numbers. Here again the Def is used, within the def is the operation of squaring as the final plus.




At the end we are asking for the results and the result


At the end we will be running this way


Quiz 4 minimum. (Def with three variables)

--Originally published at Python student

At the beginning, it costs a little to understand the issue, it is not so difficult to understand, you must put the variables that you use at the beginning of the Def, from under that you do what you want the program to do (this does not see the person who is going to Use), underneath this already puts what the user will see.
~~~~~~~~

~~~~~~~~~~~~~~~~~~



When running the program you can see that it ran perfectly, it gives you the smallest number of requests 3




Input

--Originally published at Python student

okey, the input is used to declarate one valor a the variable, in python is:

x= Input();

y= input();

"x" is the variable, the input Is used to ask for the value that will be given to the variable.

To add two variables it is necessary to put the parentheses and put the variable:

sum= int(x)+int(y);



Como usar el input