Nuevo en Python 3.6: Concadenar variables con Strings
Todos estamos acostumbrados a utilizar .format , pero ahora en la nueva versión podemos hacerlo más sencillo.
name = "Paco"
text = f"Mi nombre es {name}."
print(text)
Y de devolverá lo siguiente:
Mi nombre es Paco
This work is under a Attribution-NonCommercial-NoDerivatives 4.0 International license.
Will you buy me a coffee?
This is how I keep writing without ads or paywalls.
Sure, it's on me!
Comments
There are no comments yet.