File tree 2 files changed +44
-0
lines changed
00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python
01 - OPERADORES Y ESTRUCTURAS DE CONTROL/python
2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://www.python.org/
2
+
3
+ """
4
+ Comentario de varias
5
+ lineas. Que bueno está el jamón!
6
+ """
7
+ '''
8
+ Esto también es un comentario
9
+ '''
10
+ # Y esto.
11
+
12
+ jamon = 'Manjar'
13
+
14
+ jamon = True
15
+ jamon = ['Vida' , 'Sabor' , 'Maravilla' ]
16
+ jamon = {'Manjar' : True }
17
+
18
+ print ('Hola Python!' )
Original file line number Diff line number Diff line change
1
+
2
+ suma = 1 + 1
3
+ print (suma )
4
+ resta = 56 - 32
5
+ print (resta )
6
+ comparación = 20 < 10
7
+ print (comparación )
8
+ división = 50 / 5
9
+ print (división )
10
+ resto_división = 74 % 5
11
+ print (resto_división )
12
+
13
+
14
+ """ Crea un programa que imprima por consola todos los números comprendidos
15
+ entre 10 y 55 (incluidos), pares, y que no son ni el 16 ni múltiplos de 3.
16
+
17
+ """
18
+
19
+ result = []
20
+
21
+ for i in range (10 , 56 ):
22
+ if i % 2 == 0 and i != 16 and i % 3 != 0 :
23
+ result .append (i )
24
+
25
+
26
+ print (result )
You can’t perform that action at this time.
0 commit comments