Skip to content

Instantly share code, notes, and snippets.

@hkamran80 hkamran80/sl_homework.py
Last active Jun 9, 2018

Embed
What would you like to do?
import sl
from getpass import getpass
schoolloop_subdomain = input("Subdomain: ")
schoolloop_username = input("Username: ")
schoolloop_password = getpass()
s2 = login(schoolloop_subdomain, schoolloop_username, schoolloop_password)
homework = sl.get_homework(s2)
for h in homework:
if h[4] == 1:
print(h[0] + " in " + h[1] + " due TODAY!" )
elif h[4] == 2:
print(h[0] + " in " + h[1] + " due TOMORROW!")
elif h[4] == 0:
print(h[0] + " in " + h[1] + " due " + h[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.