Skip to content

Commit

Permalink
==kyu_7.always_perfect
Browse files Browse the repository at this point in the history
kyu_7/easy_line/__init__.py:1:0: R0801: Similar lines in 2 files
==kyu_7.always_perfect.test_check_root:[55:63]
==kyu_7.sum_of_powers_of_2.test_sum_of_powers_of_2:[39:47]
        allure.dynamic.severity(allure.severity_level.NORMAL)
        allure.dynamic.description_html(
            '<h3>Codewars badge:</h3>'
            '<img src="https://www.codewars.com/users/myFirstCode'
            '/badges/large">'
            '<h3>Test Description:</h3>'
            "<p></p>")
 (duplicate-code)
  • Loading branch information
ikostan committed Sep 27, 2024
1 parent fe9f57d commit e9478fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kyu_7/always_perfect/check_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def check_root(string: str) -> str:
root: float = math.sqrt(result)

if root % 1 == 0:
return '{}, {}'.format(result, int(root))
return f'{result}, {int(root)}'
else:
return 'not consecutive'

0 comments on commit e9478fa

Please sign in to comment.