Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

f-string ponto decimal python

valor_hora_trabalho = float(input("Valor por hora trabalhada: "))
horas_trabalhadas = float(input("Horas trabalhadas: "))

salario  = valor_hora_trabalho * horas_trabalhadas

print(f"Salário do mês: R${salario:.2f}")
Comment

PREVIOUS NEXT
Code Example
Python :: python check my gpu 
Python :: exponentiation is the raising of one number to the power of another. this operation is performed using two asterisks **. 
Python :: filter with different operator in django 
Python :: python datetime to string iso 8601 
Python :: tkinter max size 
Python :: django python base 64 encode 
Python :: add all string elements in list python 
Python :: copy text python 
Python :: how to play sound after pressing a button in tkinter 
Python :: Pytube mp3 
Python :: kivy fixed window 
Python :: column standardization pandas 
Python :: python datetime now minus 3 hours 
Python :: how to remove all spaces from a string in python 
Python :: python pandas apply to one column 
Python :: python cd to script directory 
Python :: python prompt for input 
Python :: matplotlib 3D plots reduce margins 
Python :: series datetime64 seconds to 0 
Python :: how to make a text input box python pygame 
Python :: how to split an input in python by comma 
Python :: fraction thesis 
Python :: how to sum the revenue from every day in a dataframe python 
Python :: how to do forward feature selection in python 
Python :: pandas convert column to index 
Python :: load saved model pyspark 
Python :: how to delete print statement from console pythonn 
Python :: PySpark get columns with missing values 
Python :: how to concat csv files python 
Python :: how to create a object in djago views model 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =