mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
Remove wrongly placed double qoutes (#5530)
* Update baconian_cipher.py * Update join.py * Updated type hint
This commit is contained in:
parent
0ca1279997
commit
2ddd81df21
|
@ -83,7 +83,7 @@ def decode(coded: str) -> str:
|
||||||
return decoded.strip()
|
return decoded.strip()
|
||||||
|
|
||||||
|
|
||||||
if "__name__" == "__main__":
|
if __name__ == "__main__":
|
||||||
from doctest import testmod
|
from doctest import testmod
|
||||||
|
|
||||||
testmod()
|
testmod()
|
||||||
|
|
|
@ -3,7 +3,7 @@ Program to join a list of strings with a given separator
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def join(separator: str, separated: list) -> str:
|
def join(separator: str, separated: list[str]) -> str:
|
||||||
"""
|
"""
|
||||||
>>> join("", ["a", "b", "c", "d"])
|
>>> join("", ["a", "b", "c", "d"])
|
||||||
'abcd'
|
'abcd'
|
||||||
|
@ -26,7 +26,7 @@ def join(separator: str, separated: list) -> str:
|
||||||
return joined.strip(separator)
|
return joined.strip(separator)
|
||||||
|
|
||||||
|
|
||||||
if "__name__" == "__main__":
|
if __name__ == "__main__":
|
||||||
from doctest import testmod
|
from doctest import testmod
|
||||||
|
|
||||||
testmod()
|
testmod()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user