Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # Script que pide un nombre y responde con un saludo. Si el usuario no
- # dice su nombre, el script debe indicarlo
- # ayuda: funciĆ³n len
- nombre = input("Ingrese su nombre: ")
- nombre = nombre.strip()
- if nombre != "":
- print(f"Hola {nombre}")
- else:
- print("No me has dicho tu nombre")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement