forked from mouredev/roadmap-retos-programacion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/mouredev/roadmap-retos-prog…
- Loading branch information
Showing
74 changed files
with
8,024 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/go/kelvinCB.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
//package main | ||
|
||
// Go official website: https://go.dev | ||
|
||
// This is a single line comment | ||
|
||
/*This is | ||
a multiple line comment | ||
for this tutorial | ||
*/ | ||
|
||
package main | ||
|
||
import ( | ||
"fmt" | ||
"math/cmplx" | ||
) | ||
|
||
// Variable | ||
var my_name = "CB" | ||
|
||
// Constant | ||
const Pi = 3.1416 | ||
|
||
// Primitive types | ||
var my_other_name string = "Rafael" | ||
var my_number int = 8 | ||
var my_decimal float64 = 12.41 | ||
var my_bulb bool = false | ||
var my_complex128 complex128 = cmplx.Sqrt(-5 + 12i) | ||
var my_uint uint64 = 1<<64 - 1 | ||
var my_rune rune = 2147483647 | ||
|
||
func main() { | ||
//Print on Terminal name of used programming language | ||
fmt.Println("¡Hello, Go!") | ||
|
||
//Additional to know what type of variable is -> | ||
fmt.Printf("The type of %v is %T", my_complex128, my_complex128) | ||
} |
31 changes: 31 additions & 0 deletions
31
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/java/CristianMR87.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
public class CristianMR87 { | ||
public static void main(String[] args) { | ||
|
||
// https://www.java.com/es/ | ||
|
||
//Comentario en una linea | ||
/* | ||
* Comentario | ||
* en | ||
* varias | ||
* lineas | ||
*/ | ||
|
||
//Crear una variable: | ||
int miVariable = 1234; | ||
final int constante = 1; | ||
|
||
//Variables con tipos de datos primitivos | ||
int valorInt = 12; | ||
double valorDouble = 12.3; | ||
float valorFloat = 12.4f; | ||
String valorString = "JAVA"; | ||
char valorChar = 'A'; | ||
boolean valorBoolean = true; | ||
|
||
System.out.println("Hola, "+valorString); | ||
|
||
|
||
|
||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript/valeriatorrealba.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// EJERCICIO: | ||
//- Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado. | ||
|
||
// https://developer.mozilla.org/es/docs/Web/JavaScript | ||
|
||
//- Representa las diferentes sintaxis que existen de crear comentarios en el lenguaje (en una línea, varias...). | ||
|
||
// Esto es un comentario | ||
|
||
/* | ||
Esto es un comentario | ||
de varias líneas. | ||
*/ | ||
|
||
//- Crea una variable (y una constante si el lenguaje lo soporta). | ||
|
||
let nombre; | ||
const Apellido = 'Torrealba'; | ||
|
||
//- Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...). | ||
|
||
//String | ||
let name = 'Bob'; | ||
|
||
//Number | ||
let edad = 10; | ||
|
||
//Boolean true/false | ||
let activo = true; | ||
|
||
//Array | ||
let miArray = [1,'Bob','Steve',10]; | ||
|
||
//Object | ||
let miVariable = document.querySelector('h1'); | ||
//- Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
|
||
let saludo = '¡Hola, '; | ||
let lenguaje = 'JavaScript!' | ||
|
||
console.log(saludo + lenguaje); |
50 changes: 50 additions & 0 deletions
50
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/php/jhonnfl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
// https://php.net | ||
|
||
// Esto es un comentario en una línea | ||
|
||
/* | ||
Esto es un comentario | ||
de varias líneas | ||
*/ | ||
|
||
// Crea una variable (y una constante si el lenguaje lo soporta). | ||
$variable = "Esto es una variable"; | ||
|
||
const CONSTANTE = "Esto es una constante"; | ||
|
||
define("Constante 2", "Esto es una constante con define"); | ||
|
||
/* | ||
Crea variables representando todos los tipos de datos primitivos | ||
del lenguaje (cadenas de texto, enteros, booleanos...). | ||
*/ | ||
|
||
$variableNumeroEntero = 6; | ||
|
||
$variableBooleanoTrue = true; | ||
|
||
$variableBooleanoFalse = false; | ||
|
||
$variableNumeroFlotante = 54312.78; | ||
|
||
$variableNula = null; | ||
|
||
$variableString = "PHP"; | ||
|
||
$variable_con_array = array(6, 8, 10); | ||
|
||
$array_con_corchetes = [5, 6, 7]; | ||
|
||
$arrayAsociativo = [ | ||
"nombre" => "Jhonn", | ||
"apellido" => "Flores", | ||
"Nacionalidad" => "VZLA", | ||
]; | ||
|
||
|
||
//Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
echo "¡Hola, {$variableString}!\n"; | ||
echo "Esto es una segunda forma de concatenar en " . $variableString; | ||
?> |
35 changes: 35 additions & 0 deletions
35
...ap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/JesusAntonioEEscamilla.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# #00 - Python -> Jesus Antonio Escamilla | ||
|
||
# Aquí es el sitio de Python => https://www.python.org/ | ||
|
||
|
||
# Comentar una linea | ||
|
||
|
||
""" | ||
Esto es un comentario de varias lineas | ||
usando comillas triples. Aunque este formato | ||
es mas para documentar o de módulos o clases y | ||
y comentario largos | ||
""" | ||
|
||
|
||
''' | ||
También este es un | ||
comentario de varias | ||
lineas con comillas | ||
triples simples | ||
''' | ||
|
||
|
||
mi_variable = "Python" | ||
MI_CONSTANT = "Python constante" # por convención | ||
|
||
|
||
intVariable = 42 | ||
floatVariable = 3.14159 | ||
strVariable = '¡¡Hola, Mundo!!' | ||
booleanoVariable = True | ||
|
||
|
||
print(f'Hola,{mi_variable}') |
23 changes: 23 additions & 0 deletions
23
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/PedroJOG.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Comentario en una línea | ||
|
||
""" | ||
comentario en | ||
varias líneas | ||
""" | ||
|
||
''' | ||
Otro tipo de comentario | ||
en varias líneas | ||
''' | ||
|
||
my_variable = "Variable" | ||
my_variable = "Variable modificada" | ||
|
||
MY_CONSTANT = "Constante" #Se suele utilizar mayúsculas para que se respete la constante pero aún así se puede modificar | ||
|
||
entero = 5 | ||
float = 5.5 | ||
cadena = "Mi cadena" | ||
bool = true | ||
|
||
print("Hola, Python") |
30 changes: 30 additions & 0 deletions
30
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/chema-dw.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Python official website https://www.python.org/ | ||
|
||
# Comentario en una linea | ||
|
||
""" | ||
Esto es un comentario | ||
en varias lineas | ||
""" | ||
|
||
''' | ||
Esto también | ||
es un comentario | ||
en varias lineas | ||
''' | ||
|
||
# VARIABLES | ||
var1 = "Mi primera variable" | ||
# variable constante por convención ya que en Phyton no exsiten las variables constantes | ||
AGE = 30 | ||
|
||
# TIPOS | ||
var_string = "My string" | ||
var_string = 'Other string' | ||
var_boolean = True | ||
var_int = int(1) | ||
var_float = float(4.5) | ||
|
||
language = "Python" | ||
print(f"¡Hola, {language}!") |
24 changes: 24 additions & 0 deletions
24
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/ggilperez.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# https://python.org | ||
|
||
# This is a comment in python | ||
|
||
""" | ||
block comment | ||
with double colons | ||
""" | ||
|
||
|
||
''' | ||
block comment | ||
with simple colons | ||
''' | ||
|
||
my_variable = None | ||
MY_CONSTANT = 3.14 | ||
|
||
my_string = "Hello World" | ||
my_int = 0 | ||
my_bool = True | ||
my_float = 3.14 | ||
|
||
print("¡Hola, Python!") |
21 changes: 21 additions & 0 deletions
21
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/javirr4.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# https://es.python.org/ | ||
# Comentario 1 línea | ||
''' | ||
Esto también es | ||
un comentario | ||
en varias líneas | ||
''' | ||
my_variable = "Mi variable" | ||
|
||
MY_CONSTANT = "Mi constante" # por convención | ||
|
||
my_int = 10 | ||
my_float = 5.0 | ||
my_bool = True | ||
my_bool = False | ||
my_string = "Bienvenidos a todos" | ||
|
||
print ("¡Hola,Python!") | ||
print(my_variable) | ||
print(my_float) | ||
print(my_bool) |
16 changes: 16 additions & 0 deletions
16
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/qwik-zgheib.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# visite oficial page https://www.python.org/ | ||
|
||
# comment in one line | ||
|
||
""" | ||
comment in multiple lines | ||
""" | ||
|
||
number_int: int = 10 | ||
number_float: float = 10.5 | ||
CONSTANT: float = 3.14 | ||
string: str = "Hello, Python!" | ||
boolen: bool = True | ||
|
||
|
||
print(f"{string}") |
Oops, something went wrong.