Aqui esta una explicacion de como funciona la recursion
Aqui esta una explicacion de como funciona la recursion
Comments Off on Recursion
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #mastery21, #TC, #TC1017, #WorkHardOrGoHome, Mastery
If you do need to iterate over a sequence of numbers, the built-in function range() comes in handy. It generates lists containing arithmetic progressions, e.g.:
>>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
The given end point is never part of the generated list; range(10) generates a list of 10 values, exactly the legal indices for items of a sequence of length 10. It is possible to let the range start at another number, or to specify a different increment (even negative):
>>> range(5, 10) [5, 6, 7, 8, 9] >>> range(0, 10, 3) [0, 3, 6, 9] >>> range(-10, -100, -30) [-10, -40, -70]
To iterate over the indices of a sequence, combine range() and len() as follows:
>>> a = ['Mary', 'had', 'a', 'little', 'lamb'] >>> for i in range(len(a)): ... print i, a[i] ... 0 Mary 1 had 2 a 3 little 4 lamb
My example:
x=[‘mastery25′,’tc1014’]
for i in range (len(x)):
print (“#”,x[i])
>>>#mastery25
>>>#tc1014
#mastery25
#tc1014
GILBERTO ROGEL GARCÍA
SOURCE: Here
Comments Off on #mastery25 Creation and use of ranges in Python
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #Mastery25, #TC, #TC1014, Mastery
Nesting of conditional statements
If you want to check a condition after a previous condition that was true, then you might want to use nested statements.
Example:
NESTED IF CONSTRUCT
In a nested if construct, you can have an if…elif…else construct inside another if…elif…else construct. The syntax of the nested if…elif…else construct may be:
Comments Off on Mastery18
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #mastery18, #TC, #TC1014, Mastery
Muchachos es #MasteriesTime
#TC1017
Aqui les dejo el link de un vdeo en donde explico como funcionan los strings les recomiendo verlo
saludos!
Comments Off on STRINGS
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #MasteriesTime, #Mastery25, #TC, #TC1017, #WorkHardOrGoHome, Mastery
SUDOKU
Aqui esta el codigo principal en github de lo que conllevo hacer todo esto: https:/
Pero tambien hay un video para que puedan ver como funciona el juego
Link: https:/
ASI QUE DISFRUTENLO
#Tc1017
Comments Off on Proyecto Final
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #FinalProject, #sudoku, #TC, #TC1017
#Mastery30
El sistema de datos por herramientas es un software libre, libremente disponible para la realización de gráficos 3D por computadora, procesamiento de imagen y visualización. VTK consiste en una biblioteca de clases de C++ y varias capas de interfaz interpretadas como Tcl/Tk, Java, y Python.
“The Visualization Toolkit (VTK) is an open-source, cross-platform, software system for 3D computer graphics, image processing, and visualization. Originally written as companion software to the textbook The Visualization Toolkit: An Object-Oriented Approach to 3D Graphics by Will Schroeder, Ken Martin, and Bill Lorensen, VTK provided the motivation to found Kitware.
From initial development in 1993, VTK has grown to be the premier visualization system today through the support and dedication of a global community. Much of this work has stemmed from Kitware, recently including a transition to using Git and Gerrit for distributed version control; the addition of pointer classes to facilitate pointer management; enhancement of the VTK pipeline to suit AMR; improvements to the plotting and charting capabilities in VTK; and general toolkit maintenance.”(http:/
#TC1017
Comments Off on Mastery30:: Visualization of data with tools
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #333333, #mastery30, #TC, #TC1017, Mastery
Finalmente terminamos nuestro sudoku,fue dificil hacerlo nos costó mucho trabajo, en la parte que yo me trabe era para que imprimiera el numero otra vez en el tablero una vez que lo ingresaba, a veces nos compilaba bien y otras veces no,fue bueno trabajar con mi compañero fue dificil pero lo logramos. Aqui pueden ver nuestro codigo. Otra dificultad que tuve fue encontrar los codigos de los colores y saber ponerlos.
https:/
#TC1017 #FinalProject
Comments Off on #TC1017 #FinalProject
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #FinalProject, #TC, #TC1017
Comments Off on #Mastery25 #TC1017 https://www.youtube.com/watch?v=aFxJNE-Nb3o
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #Mastery25, #TC, #TC1017, Mastery
Aqui esta un nuevo tutorial para poder saber como utilizar un if y tambien un else como condicionales.
Aqui esta el link: https:/
#Tc1017
#Mastery15
#Mastery16
Comments Off on If and Else
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #Mastery15, #Mastery16, #TC, #TC1017, Mastery
Creation and use of arrays in C++ #TC1017 #Mastery24
An array is a data structure, or more technically, a memory that stores a collection of items, all of the same type. Should imagine an array as a contiguous sequence of cells (memory spaces), or squares, each of which can save an item from the collection. Also, it is usual to draw as illustrated by the following figure:
This figure represents an array of seven squares each of which can be used to store a data. The dimension or size of an array is the number of cells that comprise it. It should be clear, then, that the above figure corresponds to an array of dimension 7.
Example of dimension
In 2 dimension be like
At the beginning I was thinking like how to do a sudoku in this way so here is and example
STEPS!!!
EXAMPLE:
float array [A];
In this Code that I did, I wrote some comments explaining what it means each line
LINKS that I Used to explain and do my WSQ’s and this awesome Mastery 😀
http:/
Comments Off on Creation and use of arrays in C++ #TC1017 #Mastery24
Posted in Blogs, Syndicated, TC1017 Blogs
Tagged #Mastery24, #TC, #TC1017, Mastery