Ad
Numbers
Data Types
Fundamentals
Code
Diff
  • def perfect(numbers):
        #Code goes here. Good Luck!
        
        return [i for i in numbers if i == (i ** 0.5) ** 2]
    • def perfect(numbers):
    • #Code goes here. Good Luck!
    • return perfected_numbers
    • return [i for i in numbers if i == (i ** 0.5) ** 2]
Fundamentals

Given x and y, you need to print numbers from x to y inclusive

def row(x, y):
    return [i for i in range(x, y + 1)]