PW Akshay

Generation

generate functionTue, 03 Jan 2023

function filling a full line with = sign according to the output screen without specifying width

import shutil def fill_line(sign = '='): terminal_width = shutil.get_terminal_size((80, 20)).columns print('=' * terminal_width) fill_line()

Questions about programming?Chat with your personal AI assistant