Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

1051 texes uri solution

# 1051 Texes
# solved by Isfak Ahmed
x = '{:.2f}'.format(float(input()))
salary = float(x)
if salary > 0 and salary <= 2000:
    print("Isento")
else :
    if salary > 2000 and salary <= 3000:
        salaryTax = salary - 2000
        tax = salaryTax * (8/100)
    elif salary > 3000 and salary <= 4500:
        salaryTax = salary - 3000
        tax = 80 + salaryTax *(18/100)
    elif salary > 4500 :
        salaryTax = salary - 4500
        tax = 80 + 270 + salaryTax *(28/100)

    print("R$ {:.2f}".format(tax))
Comment

PREVIOUS NEXT
Code Example
Python :: how to store only the first and last item of a list in variable python 
Python :: assertionerror and buffererror are derived from which built-in python class 
Python :: pandas iloc range 
Python :: Remove outliers with median value and Capping 
Python :: add js file in web.assets_backend 
Python :: how can i display the context data returned by the view in the template 
Python :: google.api_core.exceptions.ServiceUnavailable: 503 The datastore operation timed out, or the data was temporarily unavailable when using stream 
Python :: how to do a python loop 
Python :: how to convert input time value to datetime 
Python :: convert to string except missing 
Python :: mysql insert into python many 
Python :: handling image files django aws 
Python :: Python check if caps lock is pressed 
Python :: postgtres settings.py setup with django 
Python :: numerical columns 
Python :: list of object in python 
Python :: saving to PIL image to s3 
Python :: create a number of variables based on input in python 
Python :: Common elements in a list(comparing two lists.) 
Python :: operator overloading in python 
Python :: NAME.append (Line.split(",")[1].rstrip()) IndexError: list index out of range 
Python :: first flask api 
Python :: way to close file python with staement 
Python :: python os module using stat 
Python :: pyqt5 different resolutions 
Python :: blue ray size 
Python :: double char 
Python :: sort files in windows order python 
Python :: can 2020 get any worse 
Python :: print greeting in python explication 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =