![foobar 1.3.9 foobar 1.3.9](https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/65d8a26e-3b0d-4039-af8d-6665ab6fd3e1/d60tlaq-34c07e73-0b80-4bd2-bd67-1329ba51c96e.png)
Some example calls are shown below where the comment underneath the call shows the factors for each of the given numbers: is_relatively_prime(12, 13) # True You may assume that n and m are at least 1 for this problem. Two numbers are relatively prime if they share no common factors besides 1. Write a function called is_relatively_prime that takes two integer numbers n and m and returns True if n and m are relatively prime to each other, returning False otherwise. A common pattern when working with digits is to use n // 10 and n % 10 to pull a number apart, digit by digit. Hint: You will likely want to use a strategy that involves integer division and the mod operator.
#Foobar 1.3.9 generator
Returns a generator that specifies the range of numbers providedįor example, if you want to call the max function you would write the line: x = max(1, 7) # x will store 7 Returns the smallest number of the numbers provided
![foobar 1.3.9 foobar 1.3.9](http://4.bp.blogspot.com/-BPeHKm4RaJs/U8h8qNYZdxI/AAAAAAAAEvE/rGJF5pVG3_Q/s1600/Foobar2000.png)
Returns the largest number of the numbers provided Returns the number of elements inside any object that stores multiple elements (string, list, dictionary) Takes the absolute value of the given number Here is a full list of Python built-in functions and their documentation and below is a list of useful ones for this assignment except the "casting" functions to convert between data-types that we saw in class Name readable) code is knowing what these functions are so you can make your code simpler to understand. One of the really handy things about Python is that it has a lot of built-in functions to handle a lot of common tasks.