function filling a full line with = sign according to the output screen without specifying width using shutil
import shutil #using shutil to get screen width width = shutil.get_terminal_size()[0] def fill_line(n): line = '=' * n return line line = fill_line(width) print(line)