Help me with my python code

#have user input data and have it stored in an integer
Debt, Salary = input("Enter your slary then your debt:").split()
Debt = int(Debt)
Salary = int(Salary)
#calculate years to payoff
Years = Debt / Salary
print(Years)

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums


You didn’t describe the problem you are having or what different approaches you’ve tried to solve it.

You spelt salary wrong