Although I am defining my function as below:
import textwrap
def wrap(string, max_width):
print(textwrap.fill(string, max_width))
if __name__ == '__main__':
string, max_width = input(), int(input())
result = wrap(string, max_width)
print(result)
I am getting an error like:
*ABCD
EFGH
IJKL
IMNO
QRST
UVWX
YZ
None*
Can you please help me to debug why this "None" or how is this value getting augmented with the output.