Skip to content

Commit 5ef880f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7261334 commit 5ef880f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conversions/ascii_to_char.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ def ascii_to_char(ascii_val: int) -> str:
22
"""Convert ASCII value to corresponding character."""
33
return chr(ascii_val)
44

5+
56
if __name__ == "__main__":
67
num = int(input("Enter ASCII value: "))
78
print("Character is:", ascii_to_char(num))

0 commit comments

Comments
 (0)