• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Jan 28th, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. import time
2.
3. pds = [{'Teacher':'Mrs. Robinson','Class':'CCR','Time.Start':'9:30','Time.End':'9:55'},{'Teacher':'Mr. Shedden','Class':'Math','Time.Start':'9:58','Time.End':'10:53'},{'Teacher':'Mrs. Robinson','Class':'Language Arts','Time.Start':'10:56','Time.End':'11:51'},{'Teacher':'','Class':'Lunch','Time.Start':'11:53','Time.End':'12:23'},{'Teacher':'Mr. Wing','Class':'Music','Time.Start':'12:26','Time.End':'13:21'},{'Teacher':'Mr. Silverstine','Class':'Crime Scene Investigation','Time.Start':'13:24','Time.End':'14:19'},{'Teacher':'Mrs. Wong','Class':'World History','Time.Start':'14:22','Time.End':'15:17'},{'Teacher':'Mrs. Johnson','Class':'Earth and Space Science','Time.Start':'15:20','Time.End':'16:15'}]
4.
5. if time.localtime()[4] < 10:
6.   thetime = str(time.localtime()[3])+str(':')+str(time.localtime()[4])+str('0')
7. else:
8.   thetime = str(time.localtime()[3])+str(':')+str(time.localtime()[4])
9.
10. print(thetime)
11. print()
12.
13. for period in pds:
14.   print('Class:',period['Class'])
15.   print('Teacher:',period['Teacher'])
16.   print('Starts:',period['Time.Start'])
17.   print('Ends:',period['Time.End'])
18.   print()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Top