automate-boring-stuff/exercises/ex01/ex01.py

16 lines
406 B
Python
Raw Normal View History

2023-02-16 16:51:17 -06:00
"""
# hello.py
The window that appears should contain a cursor awaiting your input,
but its different from the interactive shell, which runs Python instructions
Python Basics as soon as you press enter.
"""
2023-02-21 15:34:58 -06:00
print("Nombre:")
2023-02-13 14:16:10 -06:00
nombre = input()
print(f"Tu nombre es '{nombre}'.")
print(f"Tu nombre tiene '{len(nombre)}' caracteres.")
2023-02-21 15:34:58 -06:00
print("Edad:")
2023-02-13 14:16:10 -06:00
edad = input()
print(f"{nombre}, tienes {edad} años.")