PW Akshay

Generation

generate functionTue, 03 Jan 2023

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

import os def full_line(char = "="): os.system("tput setab 7") print(char * shutil.get_terminal_size().columns) os.system("tput setab 0") full_line()

Questions about programming?Chat with your personal AI assistant