Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#main file for project
from os import get_terminal_size as gts
def main():
#use os.get_terminal_size() here to determine width of the terminal window
#and format the welcome message accordingly
terminalWidth = gts()[0]
welcomeMessage = "Welcome to PyNews, an automated news emailing service"
print(welcomeMessage.center(80 if terminalWidth >= 80 else terminalWidth, "'").center(terminalWidth, " "))
print("".ljust(terminalWidth, "~"))
print("".ljust(terminalWidth, "~"))
#next will be login
if __name__ == "__main__":
main()