Python Forum
Problems with "re.fullmatch"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with "re.fullmatch"
#3
Hi @micseydel! First, thanks for your time.
If I'm not mistaken, "re" is a library of python and "fullmatch" it's inside to "re"
But I'm not sure about this...
Your other answer I don't understand... I think I'm passing a Comic but this is a string.
I am going to paste the other part of my code:
elif (opcion == 2):
        print("Escriba el título del Comic: ")
        tituloComic = str(input("Título: "))
        biblioteca = Biblioteca(None, tituloComic)
         *
         *
         *
elif (opcion == 4):
        while True:
                print("""\n\n\n OPCIONES A MODIFICAR EN COMIC \n
                1 - Autor/es
                2 - Editorial
                3 - Idioma
                4 - Nº de páginas leidas
                5 - Nº de páginas
                6 - Regresar al menu anterior
                """)
                opcion4 = int(input("Seleccione una opción: "))
                print("Comic: " + str(tituloComic))

                if (opcion4 == 1):
                    autor = str(input("Autor/es: "))
                    comic.setAutor(autor)
                elif (opcion4 == 2):
                    editorial = str(input("Editorial: "))
                    comic.setEditorial(editorial)
                elif (opcion4 == 3):
                    idioma = str(input("Idioma: "))
                    comic.setIdioma(idioma)
                elif (opcion4 == 4):
                    paginasLeidas = str(input("Nº de páginas leidas: "))
                    comic.setPaginasLeidas(paginasLeidas)
                elif (opcion4 == 5):
                    paginasTotales = str(input("Nº de páginas: "))
                    comic.setPaginasTotales(paginasTotales)
          *
          *
          *
elif (opcion == 6):
         print(" \n\n DATOS DEL COMIC \n ")
         print("Título: " + str(biblioteca.getComic()))
         print("Autor/es: " + str(comic.getAutor()))
         print("Editorial: " + str(comic.getEditorial()))
         print("Idioma: " + str(comic.getIdioma()))
         print("Nº de páginas: " + str(comic.getPaginasLeidas()))
         print("Nº de páginas leidas: " + str(comic.getPaginasTotales()))
I'm sorry if I'm not clear enough
Reply


Messages In This Thread
Problems with "re.fullmatch" - by AlanT - May-16-2019, 07:18 PM
RE: Problems with "re.fullmatch" - by micseydel - May-16-2019, 07:30 PM
RE: Problems with "re.fullmatch" - by AlanT - May-16-2019, 08:49 PM
RE: Problems with "re.fullmatch" - by micseydel - May-16-2019, 10:34 PM
RE: Problems with "re.fullmatch" - by AlanT - May-17-2019, 12:42 PM
RE: Problems with "re.fullmatch" - by micseydel - May-17-2019, 09:11 PM
RE: Problems with "re.fullmatch" - by AlanT - May-17-2019, 10:59 PM
RE: Problems with "re.fullmatch" - by micseydel - May-17-2019, 11:02 PM
RE: Problems with "re.fullmatch" - by AlanT - May-18-2019, 04:45 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020