Skip to content

commit-live-students/008-get-even-nums

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages