Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- var_entero = 3
- var_float = 3.5
- result_exp= var_entero + var_float
- var_entero_str = str(var_entero)
- var_float_str = str(var_float)
- result_exp_str = str(result_exp)
- output_str = "El resultado de " + var_entero_str + " + " + var_float_str + " es " + result_exp_str
- print(output_str)
- print( "el resultado de" + str(var_entero) + str(var_float) + "es" + str(result_exp))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement