Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- lista = [ "casa", "Perro", 5, "Arbol", 5, "Sol" ]
- #suma = lista[2] + lista[4]
- #ouput = str(suma) + " " + lista[3]
- #ouput = str(lista[2] + lista[4]) + " " + lista[3]
- #output = f'{suma} {lista[3]}'
- output = f'{lista[2] + lista[4]} {lista[3]}'
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement