def Login(): global loopcity global StudentPresent while loopcity == True: StudentID = int(raw_input("what is your ID number: ")) if StudentID in number: print StudentInfo.get(StudentID) #studentandtime= StudentPresent.append((StudentInfo.get(StudentID), CheckInTime)) print StudentPresent else: print "Not in our system, check with Admin" if StudentID == 9999: loopcity = False print loopcity
def fla(): StudentPresent = [] if Time > settime: #print "What student are you?" StudentID = int(raw_input("What student are you? ")) if StudentID in number: here = StudentInfo.get(StudentID) print here StudentPresent.append(here) print StudentPresent else: print "Not in our system, check with Admin" if StudentID == 9999: flag = False print flag
def CheckIn(): global flag StudentPresent = [] while flag == True: Time = ("{:%H:%M}".format(datetime.datetime.now())) StudentID = int(raw_input("What student are you? ")) if StudentID in number: here = StudentInfo.get(StudentID) print here StudentPresent.append(here) print StudentPresent else: print "Not in our system, check with Admin" if StudentID == 9999: flag = False print flag
def Try(): StudentID = int(raw_input("what is your ID number: ")) print StudentID print number if StudentID in number: print StudentInfo.get(StudentID)
def Login(): StudentID = int(raw_input("what is your ID number: ")) if StudentID in number: print StudentInfo.get(StudentID)
from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def job(): print("I'm working...") '''StudentName=['Abel','Diego'] StudentNumbers=[1126, 1134] Joined= zip(StudentName,StudentNumbers)''' flag = True CheckedInTime = ('Checked in at: {:%H:%M:%S %Y-%b-%d}'.format( datetime.datetime.now())) StudentPresent = [] number = StudentInfo.keys() name = StudentInfo.values() '''jkl ={ 234:"x", 345:"y" } morn= time(4, 0, 1) after = time(5,0,2) now = time() today=date.today() fg= date(today.year,4,1) yuh = str(datetime.now()) #localtime = time.localtime(time.time())'''