# Help me with my python code

**URL:** <https://forum.freecodecamp.org/t/help-me-with-my-python-code/178062>\
**Category:** General\
**Created:** [March 5, 2018, 1:43pm UTC](https://forum.freecodecamp.org/t/help-me-with-my-python-code/178062 "2018-03-05T13:43:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zabiahcoolguy](https://avatars.discourse-cdn.com/v4/letter/z/2acd7d/32.png) [@zabiahcoolguy](https://forum.freecodecamp.org/u/zabiahcoolguy)\
**Post date:** [March 5, 2018, 1:43pm UTC](https://forum.freecodecamp.org/t/help-me-with-my-python-code/178062/1 "2018-03-05T13:43:09Z")

</div>

```auto
#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)

```

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [March 5, 2018, 3:15pm UTC](https://forum.freecodecamp.org/t/help-me-with-my-python-code/178062/2 "2018-03-05T15:15:13Z")

</div>

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](http://forum.freecodecamp.com/t/forum-code-formatting/25574) to find the backtick on your keyboard. The “preformatted text” tool in the editor (`</>`) will also add backticks around text.

![markdown_Forums](https://sea3.discourse-cdn.com/freecodecamp/uploads/default/original/3X/4/b/4b9a26f0c243380dd84935f4e29b92e3ecee8d05.gif)

* * *

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

---

<div class="post-metadata">

**Author:** ![JohnnyBizzel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/johnnybizzel/32/37661_2.png) [@JohnnyBizzel](https://forum.freecodecamp.org/u/JohnnyBizzel)\
**Post date:** [March 5, 2018, 5:08pm UTC](https://forum.freecodecamp.org/t/help-me-with-my-python-code/178062/3 "2018-03-05T17:08:43Z")

</div>

> [@zabiahcoolguy](#):
>
> slary

You spelt **salary** wrong

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 6:44pm UTC](https://forum.freecodecamp.org/t/help-me-with-my-python-code/178062/4 "2021-01-16T18:44:59Z")

</div>

Closed on January 16, 2021, 6:44pm UTC


