Tag Archives: #Mastery10

Mastery10 – Basic output: print in python

Telling a program to print is to display information on screen. to use it in python write print() in the parentheses write the data you want to see on the screen.

example:

print (“hello world”)

the program should display “hello world” on the screen when you run the program, also it can print the value of a variable:

x = “hello world”

print (x)

and “hello world” will apear on the screen, not “x”.

Basic output (print) in Python

Basic output (print) in Python

Basic output (print) in Python

#Mastery10 basic output

An outout is a the iformation  that goes from the cumputer to the outside world, according to Wikipedia.

#Mastery10 basic output

the most basic of examples is the Hello world program. every programer makes one.

For this we use the print fuction, witch displays text (of any type) in the screen.

see code for hellow world here.

#Mastery10 basic output

An outout is a the iformation  that goes from the cumputer to the outside world, according to Wikipedia.

#Mastery10 basic output

the most basic of examples is the Hello world program. every programer makes one.

For this we use the print fuction, witch displays text (of any type) in the screen.

see code for hellow world here.

#Mastery10 basic output

An outout is a the iformation  that goes from the cumputer to the outside world, according to Wikipedia.

#Mastery10 basic output

the most basic of examples is the Hello world program. every programer makes one.

For this we use the print fuction, witch displays text (of any type) in the screen.

see code for hellow world here.

#Mastery10

Input and output are really used in programming, because they are useful to “print” something and to “give” values.

Here you can find a really simple example of this.

Also, I did a pp to explain this with more details. Here is the link:

https://drive.google.com/file/d/0B-NM4ghaDXBvQV82TE9YSlY1UXc/view?usp=sharing

And I found useful information in this link:

http://www.cplusplus.com/doc/tutorial/basic_io/

luisgarcia11 2015-02-23 09:35:46

Basic output (printing) and input (text based) in C+ https://www.youtube.com/watch?v=9_petI21bGk&feature=youtu.be

Basic output and input in C++

(Tutorial en español, ,PIW)

Para este tutorial es necesario por lo menos saber la estructura de un programa que lo puedes checar en este link: http://www.cplusplus.com/doc/tutorial/program_structure/

Las funciones de Input and Output son funciones que se ponen para poder tanto poner o imprimir informacion en pantalla y con otro el poder recibir informacion del usuario al programa.

OUTPUT

Esta funcion de C++ es una funcion que te permite imprimir informacion hacia el usuario. La funcion que se utiliza puede ser de dos maneras, pero la mas facil y mas usado es cout que es una impresion de informacion estandar que despues de usar ese cout se utiliza dos simbolos de << que quiere decir una insercion o lo que va despues de, por ejemplo: 

 

1
2
cout << "Hello";  // prints Hello
cout << Hello;    // prints the content of variable Hello 
 

donde estos simbolos señalan lo que sigue y tambien por ejemplo: 

cout << "I am " << age << " years old and my zipcode is " << zipcode;
 

donde al finalizar de poner todo lo que se quiere anhidar y decir se pone un ; para terminar esa accion.

INPUT

Esta otra funcion de C++ es una funcion que permite recibir informacion que el usuario tecle para introducirla en el programa para asignar el valor a una variable. Este comande es el de cin que se utiliza igual con un simbolo que es el de >> que es el contrario del output, con esto quiere decir que el valor que ponga el usuario. Un ejemplo de esto es: 

1
2
int age;
cin >> age;
 

Pero tambien para esto necesitas declarar las variables que van a recibir algun tipo de valor ya sea string(texto), int(entero), float(numeros decimales), char(caracteres). Y al finalizar tambien se pone un ; para finalizar esa accion.

Si requieren mas informacion visiten esta pagina: http://www.cplusplus.com/doc/tutorial/basic_io/ que es donde me base para hacer este tutorial en español.

MASTERY 10 Basic output (print) in Python

EL USO DE PRINT EN PYTHON

“print” se utiliza mucho para mostrar textos o los valores de las variables declaradas. En donde no funcionan o no es necesario poner “print” es a la hora de llamar funciones. Eso se verá más adelante.
MASTERY 10 Basic output (print) in Python
Aquí es un código simple de aritmética. Solo enfóquense en donde dice print. En la línea 12 se aprecia palabras dentro de comillas separadas por las comas con otras palabras que no lo están. El resultado es esto:
MASTERY 10 Basic output (print) in Python
Las comas en print se utilizan para separar elementos y variables de otros para evitar confusiones en su uso.

MASTERY 10 Basic output (print) in Python

EL USO DE PRINT EN PYTHON

“print” se utiliza mucho para mostrar textos o los valores de las variables declaradas. En donde no funcionan o no es necesario poner “print” es a la hora de llamar funciones. Eso se verá más adelante.
MASTERY 10 Basic output (print) in Python
Aquí es un código simple de aritmética. Solo enfóquense en donde dice print. En la línea 12 se aprecia palabras dentro de comillas separadas por las comas con otras palabras que no lo están. El resultado es esto:
MASTERY 10 Basic output (print) in Python
Las comas en print se utilizan para separar elementos y variables de otros para evitar confusiones en su uso.