Created
May 4, 2018 02:14
-
-
Save hkamran80/48560245bf111d7c9a86e518cbcf9cf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
grades = sl.get_grades() | |
for g in grades: | |
if str(g[3]) == "No grades published by teacher": | |
g_letter = "" | |
else: | |
g_letter = " (" + str(g[4]) + ")" | |
print(str(g[0]) + "°: " + str(g[1]) + " (" + str(g[2]) + "): " + str(g[3]) + g_letter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment