PW Akshay

Generation

generate functionTue, 03 Jan 2023

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

from math import * def fill_line(): term_width = int(os.popen('stty size', 'r').read().split()[1]) print('=' * term_width)

Questions about programming?Chat with your personal AI assistant