Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Pascal's triangle

  • Create a file called pascal_triangle.py that given a number N on the command line will print the first N rows of the Pascal's triangle.