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

16 lines
406 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
# 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.
"""
print('Nombre:')
nombre = input()
print(f"Tu nombre es '{nombre}'.")
print(f"Tu nombre tiene '{len(nombre)}' caracteres.")
print('Edad:')
edad = input()
print(f"{nombre}, tienes {edad} años.")