Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 623 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 623 Bytes

Python Programming Basics - Assignment

Problem Statement:

With a given integer number n, write a function to get all even numbers starting from 1.

  1. Define function 'get_even_numbers' which will accept number argument.
  2. Number should not be less than 0.
  3. Function should pass all test cases.

Instructions:

  • Program should be written in file even_numbers.py

  • Function name should be get_even_numbers.

  • Input

     Type:  List
     Value: 12
    
  • Expected Output

      Type:  List
      Value: [2,4,6,8,10]
    

    Challenge

    Try solving without for loop.