CSC111 Python Programs Fall 2015

From dftwiki3
Revision as of 10:34, 18 September 2015 by Thiebaut (talk | contribs) (Created page with "--~~~~ ---- =Wed. Sept. 16, 2015= <br /> <source lang="python"> # displayWeek.py # D. Thiebaut # displays a schedule for the five days of the week length = eval( input( "Leng...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut (talk) 10:34, 18 September 2015 (EDT)


Wed. Sept. 16, 2015


# displayWeek.py
# D. Thiebaut
# displays a schedule for the five days of the week

length = eval( input( "Length of bar? " ) )

print( "-" * length )
for day in [ "Mo:", "Tu:", "We:", "Th:", "Fr:" ]:
    print( day )
    #print( "  :" * 2)
    print( "  :" )
    print( "-" * length )