Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revised the script #163

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cisco Catalyst9300 switch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cisco Catalyst 9300 switch hsa 16GB flash memory, it is awesome !!
29 changes: 8 additions & 21 deletions Examples/Session01/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,26 @@
Schedule students for lightning talks, fall 2014
"""
import random

students = open('students.txt').readlines()

students = open('C:/Users/Jerry-mining/GitHub/IntroToPython/Examples/Session01/students.txt').readlines()
# remove the header line
del students[0]

# clean it up a bit:

# remove the languages, colon, etc.
students = [line.split(":")[0] for line in students]

# reverse the first, last names

# separate them:
students = [line.split(",") for line in students]

# put them back together
students = [first + last for last, first in students]

random.shuffle(students)

weeks = range(2,11)

weeks4 = weeks*4

schedule = zip(weeks4, students)

schedule.sort()

outfile = open('schedule.txt', 'w')

weeks = range(2,38)
# weeks = 4
# weeks4 = weeks*4
schedule = zip(weeks, students)
# schedule.sort()
outfile = open('C:/Users/Jerry-mining/GitHub/IntroToPython/Examples/Session01/schedule.txt', 'w')
for week, student in schedule:
line = 'week %s: %s\n' % (week, student)
print line,
print (line),
outfile.write(line)
outfile.close()
70 changes: 35 additions & 35 deletions Examples/Session01/schedule.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
week 2: Chantal Huynh
week 2: Eric Buer
week 2: Ian M Davis
week 2: Schuyler Alan Schwafel
week 3: James Brent Nunn
week 3: Lauren Fries
week 3: Lesley D Reece
week 3: Michel Claessens
week 4: Benjamin C Mier
week 4: Robert W Perkins
week 4: Vinay Gupta
week 4: Wayne R Fukuhara
week 5: Darcy Balcarce
week 5: David Fugelso
week 5: Henry B Fischer
week 5: Kyle R Hart
week 6: Aleksey Kramer
week 6: Alexander R Galvin
week 6: Gideon I Sylvan
week 6: Hui Zhang
week 7: Andrew P Klock
week 7: Danielle G Marcos
week 7: Ousmane Conde
week 7: Salim Hassan Hamed
week 8: Alireza Hashemloo
week 8: Arielle R Simmons
week 8: Eric W Westman
week 8: Ryan J Albright
week 9: Alexandra N Kazakova
week 9: Erik Ivan Lottsfeldt
week 9: Louis John Ascoli
week 9: Ralph P Brand
week 10: Bryan L Davis
week 10: Carolyn J Evans
week 10: Changqing Zhu
week 2: Gideon I Sylvan
week 3: Benjamin C Mier
week 4: Eric Buer
week 5: Lesley D Reece
week 6: Henry B Fischer
week 7: Vinay Gupta
week 8: Michel Claessens
week 9: James Brent Nunn
week 10: Arielle R Simmons
week 11: Schuyler Alan Schwafel
week 12: Bryan L Davis
week 13: Andrew P Klock
week 14: Alexandra N Kazakova
week 15: Alireza Hashemloo
week 16: Ian M Davis
week 17: Ousmane Conde
week 18: Erik Ivan Lottsfeldt
week 19: Louis John Ascoli
week 20: Danielle G Marcos
week 21: Lauren Fries
week 22: Hui Zhang
week 23: Carolyn J Evans
week 24: Aleksey Kramer
week 25: Ralph P Brand
week 26: Wayne R Fukuhara
week 27: Kyle R Hart
week 28: Alexander R Galvin
week 29: Darcy Balcarce
week 30: Ryan J Albright
week 31: Salim Hassan Hamed
week 32: Chantal Huynh
week 33: Changqing Zhu
week 34: David Fugelso
week 35: Robert W Perkins
week 36: Eric W Westman
2 changes: 1 addition & 1 deletion lightning_schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ week 5: Kyle R Hart
week 6: Aleksey Kramer
week 6: Alexander R Galvin
week 6: Gideon I Sylvan
week 6: Hui Zhang
week 6: Hui(Jerry) Zhang
week 7: Andrew P Klock
week 7: Danielle G Marcos
week 7: Ousmane Conde
Expand Down