Quantcast
Channel: Teaching Software Carpentry » Leszek Tarkowski
Browsing latest articles
Browse All 4 View Live

Leszek Tarkowski

I’m running a small company czterybity.pl (in polish: four bits) focused on teaching C, C++ and Python. I’m cooperating with another small company – infotraining.pl, but I’m afraid both web pages are...

View Article


Image may be NSFW.
Clik here to view.

Concept Map: List Comprehension in Python

View Article


Assessment Questions: Python List Comprehensions

Question 1 competence What is an equivalent list comprehension for code: result = [] for i in range(10): if i % 2: result.append(i ** 2) print(result)   Answers: a) print([x ** 2 for x in range(10) if...

View Article

Image may be NSFW.
Clik here to view.

Screencast: List Comprehension

Short video about list comprehension in Python. Little bit late – sorry. Three minutes is definitely not enough, and this time pressure is responsible for jamming For curious – I’ve recorded this using...

View Article
Browsing latest articles
Browse All 4 View Live