资源算法cdl-python-lab

cdl-python-lab

2020-01-15 | |  32 |   0 |   0

Python Lab

Python exercises taken from Google's Python Class, used by me for teaching a workshop of Python. It was originally intended only for the students at the ROSEdu Community and Development Lab in 2014, but I've used it at more events since then.

Slides that help me not forget what to show to the students.

LightTable is the recommended IDE for the course.

Use PythonTutor to visualize the algorithm you have written.

Plan

The course takes two hours. The plan is:

  • first present Python specific stuff from the first slide

  • make a demo in the terminal and tell them about variables

  • code the first function (they should code along)

  • explain in the terminal strings (everything should have taken ~30 mins)

  • leave them ~20 mins for string1.py and another ~10 mins for string2.py

  • explain lists (~10 mins)

  • list1.py takes around 10 mins and list2.py another 10 mins

  • show dicts and reading from files (~10 mins)

  • give them to implement wordcount.py if you have time, or give it as homework (~30 mins)

Optional

  • how to get the list of Facebook friends using the FacebookSDK (~15 mins)

  • show them requests and beautifulsoup using the CDL submissions scraper as an example (~10 mins)

  • maybe show them OOP at the end and give them the Codecademy OOP exercises

Guides

Code written by me


上一篇:cdl_convert

下一篇:CDL-bibliography

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • shih-styletransfer

    shih-styletransfer Code from Style Transfer ...