Code
unknown
python
2 years ago
565 B
3
Indexable
def main(): msg = "Seleccione una opción\n" msg += "0: Diez palabras\n" msg += "1: Quince palabras\n" sel = int(input("Opción: ") countP = 0 if sel == 0: count1 = 0 count1Total = 0 while count1 < 10: word = str(input("ingresar palabra: ")) count1 += 1 countP += 1 print("Punto obtenido!") count1Total = count1 count1 = 0 elif sel == 1: count2 = 0 else: "Opción inválida" return -1 return 0
Editor is loading...
Leave a Comment