Skip to content

Commit 7cbe62d

Browse files
authored
Update convert-roman-numerals-with-python.mdx
1 parent f08551c commit 7cbe62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/convert-roman-numerals-with-python/convert-roman-numerals-with-python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Next, when we print the `final_answer` at the end, we should cast it as a string
124124
print("The roman numerals you entered translates to: " + str(final_answer) + "!")
125125
```
126126

127-
Make sure the `print()` statement is on the same indentation as the `if`-`elif` statements. Otherwise, Python will think you’re trying to put the `print()` command in an `if`-`elif` statement before everything is calculated.
127+
Make sure the `print()` function is inside the `for` loop and only indented once (the same indentation as the `if`-`elif`s). Otherwise, Python will think you’re trying to put the `print()` function _inside_ an `if`-`elif` statement before everything is calculated.
128128

129129
Lastly, outside the `roman_to_int()` function, let's use the input we prompted the user for so that our converted integer is printed:
130130

0 commit comments

Comments
 (0)