AQA Computer science A level > coding shortcuts > Flashcards
how to find the hex of a number
hex(ord(letter))[2:]
how to convert list of tuples to tiples
repr(name)[1:-1]
how to check for consecutive numbers
return all(a[i] - a[i - 1] == 1 for i in range(1, len(a)))