mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Pyupgrade to python3.8 (#3616)
* Upgrade to Python 3.8 syntax * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -114,7 +114,7 @@ def solution():
|
||||
if (
|
||||
abs(candidate[i] - candidate[j])
|
||||
== abs(candidate[j] - candidate[k])
|
||||
and len(set([candidate[i], candidate[j], candidate[k]])) == 3
|
||||
and len({candidate[i], candidate[j], candidate[k]}) == 3
|
||||
):
|
||||
passed.append(
|
||||
sorted([candidate[i], candidate[j], candidate[k]])
|
||||
|
Reference in New Issue
Block a user