BaşlayınÜcretsiz Başlayın

Salary and taxes

You just got a new job as an entry-level Data Scientist at a technology company in New York City with a decent starting salary of $85,000 per year.

Unfortunately, after state and local taxes, you can expect to be sending roughly 30% back to the government each year.

You will need to calculate your monthly take home pay after taxes in order to begin budgeting.

Bu egzersiz

Introduction to Financial Concepts in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Assume a 30% tax rate and a base salary of $85,000.
  • Calculate your take home salary after taxes.
  • Calculate your monthly salary after taxes (Hint: You can use simple division in this case).

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Enter your annual salary
salary = ____

# Assume a tax rate of 30%
tax_rate = ____

# Calculate your salary after taxes
salary_after_taxes = ____
print("Salary after taxes: " + str(round(salary_after_taxes, 2)))

# Calculate your monthly salary after taxes
monthly_takehome_salary = ____
print("Monthly takehome salary: " + str(round(monthly_takehome_salary, 2)))
Kodu Düzenle ve Çalıştır