Mechatronics Engineering Google Site
Special Instructions:
Entry Ticket - House Keeping
- LinkedIn - Job and Internship Opportunities
- Message me on LinkedIn if you would want to hear about Job or Internship opportunities
- Explora Vision - Honorable mention - https://www.exploravision.org/2019-honorable-mentions
- Open Lab and Robot Club Blogs - Robot Club
Mechatronics Engineering Plan For Today:
|
Python - Files
- LAB - Duration: 60 Min
- Link: Pythonlearn-07-Files
- Python Files
- Open the mbox-short
- find all the emails
- write them to a file
- the out put should just be a list of emails one each line:
postmaster@collab.sakaiproject.org
200801051412.m05ECIaH010327@nakamura.uits.iupui.edu
source@collab.sakaiproject.org
source@collab.sakaiproject.org
source@collab.sakaiproject.org
emailList=list() # Creating a List
print(emailList)
# xfile=open('mbox-short-short.txt')
#fname=input('enter a file name ')
fname="mbox-short-short.txt"
try:
fhand=open(fname)
except:
print('bad dog... no file found')
quit()
# Challenge
print(fhand)
for variableNamedLine in fhand:
lineListEmail=variableNamedLine.split()
for i, email in enumerate(lineListEmail):
if '@' in email:
print('An email was found at list location ',i, 'and is ',lineListEmail[i])
emailList.append(lineListEmail[i])
print('this is just the emails')
print(emailList)
print(emailList)
# xfile=open('mbox-short-short.txt')
#fname=input('enter a file name ')
fname="mbox-short-short.txt"
try:
fhand=open(fname)
except:
print('bad dog... no file found')
quit()
# Challenge
print(fhand)
for variableNamedLine in fhand:
lineListEmail=variableNamedLine.split()
for i, email in enumerate(lineListEmail):
if '@' in email:
print('An email was found at list location ',i, 'and is ',lineListEmail[i])
emailList.append(lineListEmail[i])
print('this is just the emails')
print(emailList)
- LAB - Duration: 40 Min
- Link: Robot Club Google Sites
- Instructions & Expectations: Connect with your Robot Club Team. You will either be working on your Robot Project or an Open Lab Project.
- You will need to account for your time. You will need to convince me by your form submission that you worked given the time allotted.
- If you or your Robot Club Team worked on the Robot Club project, you will make sure your Robot Project Status Google docs are updated.
- If you worked on an Open Lab Project, you will also need to tell me about what you accomplished and what you are planning next.
- How to Submit Assignment: Each Student needs to account for your time.
- Every One Do The Following: Turn in an Open Lab Blog Post
- If you also worked on your Robot Club Project, also UPDATE your Robot Project Status Google docs.
- Dig Deeper: Open Lab:
- Robot Club Google Sites
- Guest LED Lesson
- Printers - Work on taking the printers apart
- TinkerCAD
- Udemy - My Courses (specifically the Arduino Workshop and Electronics Engineering Technology class)
- Assignment - Duration: 2-10 Min
- Instructions & Expectations: Desk cleanup, put away all projects, find your assigned job
- How to Submit Assignment: When Complete, check yourself off on Sign Out Sheet - 2 Points
No comments:
Post a Comment