fbpx

Reply To: Problema de imprimir el valor

  • Kevin Reyes Maldonado

    Member
    26 mayo, 2021 at 4:27 pm

    def user_registro():

    name = input('Nombre: ')

    last_name = input('Apellido: ')

    you_user = 'Hola, que tal. Soy {} {}\nRegistro exitoso.'.format(name, last_name)

    presentacion(you_user)

    def presentacion(you_user):

    with open('_presentationUser_.txt', 'r+') as my_file: # creo mi archivo donde será el registro

    my_file.write(you_user)

    print(my_file.writable())

    my_file.seek(0)

    print(my_file.read())

    user_registro()