Design of Computer Programs - 1
The following are something I learnt from Session 1
- Learnt about Poker game
- How to code various pieces of poker game – Straight, flush, 3 of a kind, 2 of a kind, is_pair etc
- How to refactor a program using tuples
- How to use tuples to store data and then sort them
- Knuth’s algo for random shuffling
- Comparing Shuffling algos
- List comprehensions
- Learnt about itertools module
- As as aside also learnt about basics of playing cards
- Learnt about Solitaire
Overall it was a well 8 hrs spent on Python – Deliberate practice