Week 2: Flow control, comprehensions and file operations#
2.1 - Flow Control - [Notebook] - [Video]#
Conditional Statements(if, elif, else)
Testing Code (try, except)
While loops
Range
Zip
For loops
Break, continue, pass
2.2 - Compact Code - [Notebook] - [Video]#
One-line if and else
Comprehensions
list, set, dictionary and more
Generators
Maps
2.3 - External Data - [Notebook] - [Video]#
Basic user input
Opening, closing and creating file
Reading and writing files
2.4 - Cheatsheet [Notebook]#
2.5 Tutorial Tutorial 2#
Convert Decimal To Ten Bit Binary String
For Loops, Sequence Sum
While Loops, Reverse A Number
List Comprehensions
DNA
Collatz Conjecture
Fizz Buzz
2.6 Exercise Exercises 2#
Decimal To/From Binary
Balmer Lines
Quantum Quibit Gates
How many days left do you have to live?
Rotating Vectors In 2-Dimensions
Quantum Quibit State Normalisation