Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 698 Bytes

File metadata and controls

28 lines (19 loc) · 698 Bytes

Variables

Las variables son contenedores de informacion o datos

Variables

Concatenacion

Concatenacion

nombre = "Lucho"
nick = "Linux Cuba"
web = "https://lucho00cuba.github.io"

print(nombre + " " nick + " - " web)
print(f"{nombre} {nick} - {web}")
print("Mi nombre es {}, ni nick es {} y mi web es {}".format(nombre, nick, web))
print("Mi nombre es {no}, ni nick es {n} y mi web es {w}".format(no=nombre, n=nick, w=web))

Salida del script

Lucho Linux Cuba - https://lucho00cuba.github.io # -> Salida 1
Mi nombre es Lucho, ni nick es Linux Cuba y  mi web es https://lucho00cuba.github.io # -> Salida 2