Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from enum import Enum 

2 

3 

4class Location(str, Enum): 

5 AUSTRALIA = "Australia" 

6 SYDNEY = "Sydney" 

7 MELBOURNE = "Melbourne" 

8 BRISBANE = "Brisbane" 

9 ADELAIDE = "Adelaide" 

10 PERTH = "Perth" 

11 HOBART = "Hobart" 

12 DARWIN = "Darwin" 

13 CANBERRA = "Canberra" 

14 

15 def __str__(self): 

16 return self.value