Python - Using the print function - Sololearn - video [Eng/Espa]

3

  • 94
  • 2
  • 9.481
  • Reply

  • Open in the desktop app ADD TO PLAYLIST

    josuerr29

    Published on May 19, 2022
    About :

    @josuerr291.gif


    English

    Hello friends of geek zone and friends of hive how are you? how are you? I'm josuerr29 and I bring a video to share with you and this for me this is one of the most important series among all that I have uploaded, as this will help my future and yours. I believe that programming is something that will help me a lot, it is an investment today that in time will be paying off for my life and yours.

    This is my second chapter but my first answered lesson of programming in python inside the app Sololearnd in this lesson we learn the important of the word "print" inside python.

    What is the print() function

    The word print in English means print, and as this name indicates when you use this word you use the function in python to print on the screen what is written in it to show the result of the program. First you write print and then it has two parentheses one opening and the other closing inside the parentheses must be what you want to display the program. These characters can be any type of sign can be letters, numbers, or some special character, they can also take spaces but all this inside the parentheses.

    The function would look like this:

    print(1234)

    To write text:

    Inside the parentheses must be enclosed these characters with single quotes or can be double quotes, however if you are going to use the single quote ends with that quote, or if the double then ends with that. This must be done so that the program does not give you a malfunction.

    The function would look like this:

    print('hello')
    print("hol")

    When you run the program what the code reader does is evaluate what you have inside the quotes and once it is correctly programmed it will display it on the screen.

    To print numbers:

    To print numbers you don't need the quotes just enclose the numbers in the parentheses.
    print(1234)

    Use of print.

    Normally when we are making a program we need defunctions to do the process but this print function shows us the result of all the other functions on the screen it is like the mathematical operation of one plus one equals two in python we will put print(2)

    If you are going to print text and numeric.

    id = "juan".
    years = 4
    print("your title", id, "who has the years", years, " of elapsed time.")

    Print allows you to combine this data, however when you are going to place it inside Print you must use these rules numbers do not use quotation marks but letters and text do

    Using "f" strings inside print.

    "f" in an additional feature that allows you to enhance the summation of variables with what you are going to display on the screen. This is done using the square brackets and this type of expressions are known because before the quotation mark goes the letter f in this way you can know this type of expression and it can look like this.

    id = "perlo".
    time = 5
    print(f "The call of {id} is made with the time of antiquity of {time} years elapsed.")

    In this way we can know the operation of this word inside python the difference between version 2 and 3 is that in version 2 the parentheses are not used however in version 3 we do use the parentheses, this helps us much more to be specific in programming.

    Thank you very much guys for watching the video until another chapter of apretar let's learn more about programming.

    content sources

    Español

    Hola amigos de geek zone y amigos de hive ¿cómo están? ¿que tal? soy josuerr29 y traigo un vídeo para compartir con ustedes y este para mí este es una de los series más importante entre todo lo que he subido, ya que esto ayudara a mi futuro y al de ustedes. Creo que la programación es algo que me va ayudar muchísimo, es una inversión de hoy que con el tiempo estará dando frutos para mi vida la suya.

    Este es mi segundo capítulo pero mi primera lección respondida de programación en python dentro de la app Sololearnd en esta lección aprendemos lo importante de la palabra "print" dentro de python

    Qué es la función print()

    La palabra print en español significa imprimir, y como este nombre lo indica cuando tú uses esta palabra ara la función en python de imprimir en pantalla lo que lleva escrito en ella para mostrar el resultado del programa. Primero se escribe print luego de esto llevan dos paréntesis uno abriendo y el otro cerrando dentro de los paréntesis debe ir lo que tú deseas Mostrar del programa. Estos caracteres pueden ser cualquier tipo de signo pueden ser letras, números, o algún carácter especial, también pueden llevar espacios pero todo esto dentro de los paréntesis.

    La función quedaría así:

    print(1234)

    Para escribir texto:

    Dentro de los paréntesis debe ir encerrado estos caracteres con comillas simples o puede ser las comillas dobles, sin embargo si vas a usar la comilla simple termina con esa comilla, o si la doble entonces termina con esa. Esto debe hacerse para que el programa no te dé un error de funcionamiento.

    La función quedaría así:

    print('hola')
    print("hol")

    Cuándo Ejecutan el programa lo que hace el lector de código es evaluar que tienes dentro de las comillas y una vez que esté correctamente programado lo va a mostrar en pantalla.

    Para imprimir números:

    Para imprimir números no se necesitan las comillas simplemente encierra los números en los paréntesis
    print(1234)

    Uso de print.

    Normalmente cuando estamos elaborando un programa necesitamos defunciones que hagan el proceso pero esta función de print nos muestra el resultado de todas las otras funciones en la pantalla es como la operación matemática de uno más uno igual a dos en python colocaremos print(2)

    Si vas a imprimir texto y numérico.

    id = "juan"
    años = 4
    print("tu titulo", id, "que tiene los años", años, " de tiempo trascurrido.")

    Print te permite combinar estos datos, sin embargo cuando tú vayas a colocarlos dentro de Print debes usar de estas reglas números no utiliza comilla pero las letras y textos si

    Usando las cadenas "f" dentro de print.

    "f" en una funcionalidad adicional que te permite mejorar la suma de variables con lo que vas a mostrar en pantalla. Esto se hace utilizando los corchetes y este tipo de expresiones se conocen porque antes de la comilla va la letra f de esta manera puedes conocer este tipo de expresión y puede quedar de la siguiente manera.

    id = "perlo"
    tiempo = 5
    print(f"El llamamiento de {id} se hace con el tiempo de antigüedad de {tiempo} años trascurrido.")

    De esta manera podemos conocer el funcionamiento de esta palabra dentro de python la diferencia entre la versión 2 y 3 es que en el 2 no se usan los paréntesis sin embargo en el 3 si usamos los paréntesis, esto nos ayuda mucho más a ser específicos en la programación.

    Muchas gracias muchachos por ver el vídeo hasta otro capítulo de apretar aprendamos más de programación.

    fuentes del contenido


    23tbANtZ3arySuvEVCZHWfeqca5jpedmUUdzUJbSJASqA7GHGAgKRQghT31HXd1q8dXhB.png

    @josuerr291.gif

    Tags :

    tech technology print funtion programming python developspanish geek geekzoone hivevenezuela developer hivedevs studying spanish sololearn apk movil venezuela

    Woo! This creator can upvote comments using 3speak's stake today because they are a top performing creator! Leave a quality comment relating to their content and you could receive an upvote worth at least a dollar.

    Their limit for today is $0!
    Comments:
    Time until josuerr29 can give away $0 to their commenters.
    0 Days 0 Hours 0 Minutes 0 Seconds
    Reply:

    To comment on this video please connect a HIVE account to your profile: Connect HIVE Account

    More Videos

    00:53
    15 views a year ago $