Formateo
This commit is contained in:
parent
e080f1e24f
commit
e08e8fb254
|
@ -6,10 +6,10 @@ but it’s different from the interactive shell, which runs Python instructions
|
||||||
Python Basics as soon as you press enter.
|
Python Basics as soon as you press enter.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print('Nombre:')
|
print("Nombre:")
|
||||||
nombre = input()
|
nombre = input()
|
||||||
print(f"Tu nombre es '{nombre}'.")
|
print(f"Tu nombre es '{nombre}'.")
|
||||||
print(f"Tu nombre tiene '{len(nombre)}' caracteres.")
|
print(f"Tu nombre tiene '{len(nombre)}' caracteres.")
|
||||||
print('Edad:')
|
print("Edad:")
|
||||||
edad = input()
|
edad = input()
|
||||||
print(f"{nombre}, tienes {edad} años.")
|
print(f"{nombre}, tienes {edad} años.")
|
||||||
|
|
Loading…
Reference in New Issue