Skip to content
#

nested-loops

Here are 14 public repositories matching this topic...

exponents() takes two lists as parameters named bases and powers. It returns a new list containing every number in bases raised to every number in powers. For example with exponents([2, 3, 4], [1, 2, 3]) the result would be the list [2, 4, 8, 3, 9, 27, 4, 16, 64] because it would first include the three solutions for base 2 [(2**1), (2**2) and (…

  • Updated Jan 24, 2021
  • Python

Improve this page

Add a description, image, and links to the nested-loops topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the nested-loops topic, visit your repo's landing page and select "manage topics."

Learn more