PW Akshay

Generation

generate functionTue, 03 Jan 2023

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

import shutil def print_line(): width, _ = shutil.get_terminal_size() print('='*width) print_line()

Questions about programming?Chat with your personal AI assistant