Add docs Python Total
This commit is contained in:
1 parent
e81027cc44
commit
b942e84458
110 files changed
+31635
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
print("El nombre de tu cerveza\nes '" + input("Que ciudad te gustaria visitar?: ") + " " + input("Cual es tu color favorito?: ") + "'\nFelicitaciones!")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
nombre = input("Por favor, dime tu nombre: ")
|
||||
ventas = int(input("Diga sus ventas totales del mes: "))
|
||||
|
||||
comision = round(ventas * 13 / 100,2)
|
||||
|
||||
print(f"Hola {nombre}, tus comisiones de este mes son de ${comision}")
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,41 @@
|
||||
texto = input("Ingresa un texto a elección: ")
|
||||
letras = []
|
||||
|
||||
texto = texto.lower()
|
||||
|
||||
letras.append(input("Ingresa la primera letra: ".lower()))
|
||||
letras.append(input("Ingresa la segunda letra: ".lower()))
|
||||
letras.append(input("Ingresa la tercera letra: ".lower()))
|
||||
|
||||
print("\n")
|
||||
print("CANTIDAD DE LETRAS")
|
||||
cantidad_letras1 = texto.count(letras[0])
|
||||
cantidad_letras2 = texto.count(letras[1])
|
||||
cantidad_letras3 = texto.count(letras[2])
|
||||
|
||||
print(f"Hemos encontrado la letra '{letras[0]}' repetida {cantidad_letras1} veces")
|
||||
print(f"Hemos encontrado la letra '{letras[1]}' repetida {cantidad_letras2} veces")
|
||||
print(f"Hemos encontrado la letra '{letras[2]}' repetida {cantidad_letras3} veces")
|
||||
|
||||
print("\n")
|
||||
print("CANTIDAD DE PALABRAS")
|
||||
palabras = texto.split()
|
||||
print(f"Hemos encontrado {len(palabras)} palabras en tu texto")
|
||||
|
||||
print("\n")
|
||||
print("LETRAS DE INICIO Y DE FIN")
|
||||
letra_inicio = texto[0]
|
||||
letra_final = texto[-1]
|
||||
print(f"La letra inicial es '{letra_inicio}' y la letra final es '{letra_final}'")
|
||||
|
||||
print("\n")
|
||||
print("TEXTO INVERTIDO")
|
||||
palabras.reverse()
|
||||
texto_invertido = ' '.join(palabras)
|
||||
print(f"Si ordenamos tu texto al revés va a decir: '{texto_invertido}'")
|
||||
|
||||
print("\n")
|
||||
print("BUSCANDO LA PALABRA PYTHON")
|
||||
buscar_python = 'python' in texto
|
||||
dic = {True:"sí", False:"no"}
|
||||
print(f"La palabra 'Python' {dic[buscar_python]} se encuentra en el texto")
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
from random import randint
|
||||
|
||||
intentos = 0
|
||||
estimado = 0
|
||||
numero_secreto = randint(1,100)
|
||||
nombre = input("Dime tu nombre: ")
|
||||
|
||||
print(f"Bueno {nombre}, he pensado un número entre 1 y 100\nTienes 8 intentos para adivinar")
|
||||
|
||||
while intentos < 8:
|
||||
estimado = int(input("Cuál es el número?: "))
|
||||
intentos += 1
|
||||
|
||||
if estimado < numero_secreto:
|
||||
print("Mi numero es mas alto")
|
||||
elif estimado > numero_secreto:
|
||||
print("Mi numero es mas bajo")
|
||||
else:
|
||||
print(f"Felicitaciones {nombre}! Has adivinado en {intentos} intentos")
|
||||
break
|
||||
|
||||
if estimado != numero_secreto:
|
||||
print(f"Lo siento, se han agotado los intentos. El numero secreto era {numero_secreto}")
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,436 @@
|
||||
%PDF-1.4
%âãÏÓ
|
||||
1 0 obj
<</MarkInfo<</Marked true>>/Metadata 2 0 R/Pages 3 0 R/StructTreeRoot 5 0 R/Type/Catalog>>
endobj
2 0 obj
<</Length 3513/Subtype/XML/Type/Metadata>>stream
|
||||
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c017 91.164464, 2020/06/15-10:20:05 ">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
|
||||
xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
|
||||
<xmp:ModifyDate>2021-09-05T18:00:53-03:00</xmp:ModifyDate>
|
||||
<xmp:CreateDate>2021-09-05T18:00:53-03:00</xmp:CreateDate>
|
||||
<xmp:MetadataDate>2021-09-05T18:00:53-03:00</xmp:MetadataDate>
|
||||
<xmp:CreatorTool>Canva</xmp:CreatorTool>
|
||||
<dc:format>application/pdf</dc:format>
|
||||
<dc:title>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">[S5] Python TOTAL Cheat Sheets</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:title>
|
||||
<dc:creator>
|
||||
<rdf:Seq>
|
||||
<rdf:li>Facundo Nicolás Colque</rdf:li>
|
||||
</rdf:Seq>
|
||||
</dc:creator>
|
||||
<xmpMM:DocumentID>uuid:2b038470-c9db-4e83-a74e-2efde3734cef</xmpMM:DocumentID>
|
||||
<xmpMM:InstanceID>uuid:64358e28-c567-421f-9d73-08bedba402ab</xmpMM:InstanceID>
|
||||
<pdf:Producer>Canva</pdf:Producer>
|
||||
<pdf:Keywords>DAEpLMhmRl8,BADsJ4ZOebQ</pdf:Keywords>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?xpacket end="w"?>
|
||||
endstream
endobj
3 0 obj
<</Count 1/Kids[6 0 R]/MediaBox[0.0 7.91997 1620.0 1627.92]/Type/Pages>>
endobj
5 0 obj
<</IDTree 7 0 R/K 8 0 R/ParentTree 9 0 R/ParentTreeNextKey 1/Type/StructTreeRoot>>
endobj
7 0 obj
<</Kids[10 0 R 11 0 R]>>
endobj
8 0 obj
<</ID 12 0 R/K 13 0 R/P 5 0 R/S/Document>>
endobj
9 0 obj
<</Nums[0[14 0 R 15 0 R 16 0 R 17 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R 28 0 R 29 0 R 30 0 R 31 0 R 32 0 R 33 0 R 34 0 R 35 0 R 36 0 R 37 0 R 37 0 R 38 0 R 39 0 R 40 0 R 41 0 R 42 0 R 43 0 R 43 0 R 44 0 R 45 0 R 46 0 R 47 0 R 48 0 R 49 0 R 50 0 R 51 0 R]]>>
endobj
14 0 obj
<</ID 52 0 R/K<</MCID 0/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
15 0 obj
<</ID 54 0 R/K<</MCID 1/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
16 0 obj
<</ID 55 0 R/K<</MCID 2/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
17 0 obj
<</ID 56 0 R/K[<</MCID 3/Pg 6 0 R/Type/MCR>><</MCID 4/Pg 6 0 R/Type/MCR>>]/P 53 0 R/S/NonStruct>>
endobj
18 0 obj
<</ID 57 0 R/K<</MCID 5/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
19 0 obj
<</ID 58 0 R/K<</MCID 6/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
20 0 obj
<</ID 59 0 R/K<</MCID 7/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
21 0 obj
<</ID 60 0 R/K<</MCID 8/Pg 6 0 R/Type/MCR>>/P 53 0 R/S/NonStruct>>
endobj
22 0 obj
<</ID 61 0 R/K<</MCID 9/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
23 0 obj
<</ID 63 0 R/K<</MCID 10/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
24 0 obj
<</ID 64 0 R/K<</MCID 11/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
25 0 obj
<</ID 65 0 R/K<</MCID 12/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
26 0 obj
<</ID 66 0 R/K<</MCID 13/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
27 0 obj
<</ID 67 0 R/K<</MCID 14/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
28 0 obj
<</ID 68 0 R/K[<</MCID 15/Pg 6 0 R/Type/MCR>><</MCID 16/Pg 6 0 R/Type/MCR>>]/P 62 0 R/S/NonStruct>>
endobj
29 0 obj
<</ID 69 0 R/K<</MCID 17/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
30 0 obj
<</ID 70 0 R/K<</MCID 18/Pg 6 0 R/Type/MCR>>/P 62 0 R/S/NonStruct>>
endobj
31 0 obj
<</ID 71 0 R/K<</MCID 19/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
32 0 obj
<</ID 73 0 R/K<</MCID 20/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
33 0 obj
<</ID 74 0 R/K<</MCID 21/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
34 0 obj
<</ID 75 0 R/K<</MCID 22/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
35 0 obj
<</ID 76 0 R/K<</MCID 23/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
36 0 obj
<</ID 77 0 R/K<</MCID 24/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
37 0 obj
<</ID 78 0 R/K[<</MCID 25/Pg 6 0 R/Type/MCR>><</MCID 26/Pg 6 0 R/Type/MCR>>]/P 72 0 R/S/NonStruct>>
endobj
38 0 obj
<</ID 79 0 R/K<</MCID 27/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
39 0 obj
<</ID 80 0 R/K<</MCID 28/Pg 6 0 R/Type/MCR>>/P 72 0 R/S/NonStruct>>
endobj
40 0 obj
<</ID 81 0 R/K<</MCID 29/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
41 0 obj
<</ID 83 0 R/K<</MCID 30/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
42 0 obj
<</ID 84 0 R/K<</MCID 31/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
43 0 obj
<</ID 85 0 R/K[<</MCID 32/Pg 6 0 R/Type/MCR>><</MCID 33/Pg 6 0 R/Type/MCR>>]/P 82 0 R/S/NonStruct>>
endobj
44 0 obj
<</ID 86 0 R/K<</MCID 34/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
45 0 obj
<</ID 87 0 R/K<</MCID 35/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
46 0 obj
<</ID 88 0 R/K<</MCID 36/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
47 0 obj
<</ID 89 0 R/K<</MCID 37/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
48 0 obj
<</ID 90 0 R/K<</MCID 38/Pg 6 0 R/Type/MCR>>/P 82 0 R/S/NonStruct>>
endobj
49 0 obj
<</ID 91 0 R/K<</MCID 39/Pg 6 0 R/Type/MCR>>/P 92 0 R/S/NonStruct>>
endobj
50 0 obj
<</ID 93 0 R/K<</MCID 40/Pg 6 0 R/Type/MCR>>/P 94 0 R/S/NonStruct>>
endobj
51 0 obj
<</ID 95 0 R/K<</MCID 41/Pg 6 0 R/Type/MCR>>/P 96 0 R/S/NonStruct>>
endobj
95 0 obj
(node00036829)
endobj
96 0 obj
<</ID 97 0 R/K 51 0 R/P 98 0 R/S/P>>
endobj
97 0 obj
(node00036736)
endobj
98 0 obj
<</ID 99 0 R/K 96 0 R/P 100 0 R/S/Div>>
endobj
99 0 obj
(node00036828)
endobj
100 0 obj
<</ID 101 0 R/K 98 0 R/P 102 0 R/S/Div>>
endobj
101 0 obj
(node00036826)
endobj
102 0 obj
<</ID 103 0 R/K 100 0 R/P 104 0 R/S/Div>>
endobj
103 0 obj
(node00036825)
endobj
104 0 obj
<</ID 105 0 R/K 102 0 R/P 106 0 R/S/Div>>
endobj
105 0 obj
(node00036824)
endobj
106 0 obj
<</ID 107 0 R/K[108 0 R 109 0 R 104 0 R]/P 110 0 R/S/Div>>
endobj
107 0 obj
(node00036750)
endobj
110 0 obj
<</ID 111 0 R/K 106 0 R/P 112 0 R/S/Div>>
endobj
111 0 obj
(node00036749)
endobj
112 0 obj
<</ID 113 0 R/K 110 0 R/P 114 0 R/S/Div>>
endobj
113 0 obj
(node00036748)
endobj
114 0 obj
<</ID 115 0 R/K 112 0 R/P 116 0 R/S/Div>>
endobj
115 0 obj
(node00036747)
endobj
116 0 obj
<</ID 117 0 R/K 114 0 R/P 118 0 R/S/Div>>
endobj
117 0 obj
(node00036746)
endobj
118 0 obj
<</ID 119 0 R/K 116 0 R/P 13 0 R/S/Div>>
endobj
119 0 obj
(node00036745)
endobj
13 0 obj
<</ID 120 0 R/K 118 Line truncated
|
||||
xœí[ÛŽä¶}ï¯Ðs | ||||