function filling a full line with = sign according to the output screen without specifying width using shutil
# import shutil to get the terminal width import shutil # define a function to fill the line def fill_line(): # get the width of current terminal width = shutil.get_terminal_size().columns # fill the line with = print('=' * width) # test the function in a new cell fill_line()