Here is a link to my video o me explaining the #mastery09.
-
Recent Posts
Recent Comments
Archives
Categories
Meta
Here is a link to my video o me explaining the #mastery09.
Mastery09
*******
Mi video:
*******
**********************
Programa hecho en Python:
**********************
https://github.com/A01630323/Learn-To-Program/blob/master/Mastery09.py
Comments Off on Learn To Program 2015-04-06 19:51:00
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #LearnToProgram, #mastery09, #TC1014
I’m gonna show you the basic types in C++ and their use
Type | Keyword |
---|---|
Boolean | bool |
Character | char |
Integer | int |
Floating point | float |
Double floating point | double |
Valueless | void |
Wide character | wchar_t |
Several of the basic types can be modified using one or more of these type modifiers:
signed
unsigned
short
long
Values that can take each type and the input of each one:
Type | Typical Bit Width | Typical Range |
---|---|---|
char | 1byte | -128 to 127 or 0 to 255 |
unsigned char | 1byte | 0 to 255 |
signed char | 1byte | -128 to 127 |
int | 4bytes | -2147483648 to 2147483647 |
unsigned int | 4bytes | 0 to 4294967295 |
signed int | 4bytes | -2147483648 to 2147483647 |
short int | 2bytes | -32768 to 32767 |
unsigned short int | Range | 0 to 65,535 |
signed short int | Range | -32768 to 32767 |
long int | 4bytes | -2,147,483,647 to 2,147,483,647 |
signed long int | 4bytes | same as long int |
unsigned long int | 4bytes | 0 to 4,294,967,295 |
float | 4bytes | +/- 3.4e +/- 38 (~7 digits) |
double | 8bytes | +/- 1.7e +/- 308 (~15 digits) |
long double | 8bytes | +/- 1.7e +/- 308 (~15 digits) |
wchar_t | 2 or 4 bytes | 1 wide character |
Comments Off on Mastery 09
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #d6d6d6, #eeeeee, #f7f7f7, #mastery09, #TC1017
Basic types and their use in C++
Los principales tipos de variables son al menos 4, para ello debemos hacer un código como lo hemos hecho hasta el momento y despues de incluir la libreria iostream y el using namespace std; debemos definir la funcion principal int main.
Al finalizar lo básico debemos definir las variables a utilizar en nuestro programa que pueden ser para variables enteras, con decimales, con muchos más decimales o hasta letras.
Debemos pedir al usuario una variable a calcular o para que la computadora lo almacene para después hacer algo con ella; esto se hace con el comando cout para después ese valor o variable, introducirla con un cin.
La variable int es para números reales enteros, la variable double es para numeros con decimales, y la variable tipo float es tambien para números con decimales.
Después de tener nuestro codigo con las variables definidas y al final un return 0; debemos guardar, compilar y correr nuestro programa como ya se explicó anteriormente.
I just made a video showing and explaining the basic data types on python
The basic types of data that python works with are:
1.- Integer: these are whole numbers from negative to positive, they can be used in the program simply writing the number in the program like 45 and to turn an input into an integer write int before the input.
2.- Float: floats are numbers with decimals like 2.5, to turn an integer into float just write float before it.
3.- strings: a set of letters, number or other characters, these dont hold any value appart from the character itself, a number written as a string wont be counted as a numeric value. strings are between ” ” to differentiate them.
4.- Tuples: a list with a fixed number of elements, they are use ( ).
5.- List: a list without a fixed number of elements, they use [ ].
6.- Dictionaries: a list of multiple elements that can be adressed by text, they use { }.
You can see more detailed explanations and some examples of these different types of data. Just click on the following link: http:/
Comments Off on Basic types and their use in Python
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #222222, #mastery09
Comments Off on #Mastery09 #TC1014
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #mastery09, #TC1014
Basic types and their use in Python
Just as variables are a basic concept in programming, so are the different types of values that a variable can have. We call these ‘data-types’, because they are different types of ways we can store data.
integers
Integers are numeric values from negative infinity to infinity, such as 1, 0, -5, etc. and can be stored, manipulated, and expressed inside variables without quotes.
float
Short for “floating point number,” any rational number, usually used with decimals such as 2.8 or 3.14159.
strings
A set of letters, numbers, or other characters. They must be in quotes ” ” .
tuples
A tuple is an unchangeable sequence of values. ie x=(1,2,3) parentheses makes it a tuple.
lists
A list is a changeable sequence of data. ie x=[1,2,3] square bracketsmakes it a list.
dictionaries
A type with multiple elements i.e. x = {1: ‘a’,’b’: 2,3: 3} where you address the elements with, e.g., a text. Dictionaries contain a key and a value.
Comments Off on Mastery 09
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #252525, #333333, #mastery09