diff --git a/ch02/list_comprehensions_increment.py b/ch02/list_comprehensions_increment.py new file mode 100644 index 0000000..fdcf1b0 --- /dev/null +++ b/ch02/list_comprehensions_increment.py @@ -0,0 +1,2 @@ +list = [1, 2, 3, 4, 5, 6] +print([x + 1 for x in list]) \ No newline at end of file