Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- var_entero = 3
- var_float = 3.732452340095
- result_exp= var_entero + var_float
- # objeto objeto funcion(objeto, int)
- output_3_digits = f'La Suma de {var_entero} + {var_float} es {round(result_exp, 3)}'
- # objeto objeto funcion(expresion)
- output_int_rounded = f'La Suma de {var_entero} + {var_float} es {round(var_entero + var_float)}'
- print(f'{output_3_digits} // 3 digits trim')
- print(f'{output_int_rounded} // integer rounded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement