Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a list of all odd numbers between two given numbers (inclusive).

Medium

Problem Statement

Create a list of all odd numbers between two given numbers (inclusive).

Sample Input

3, 10

Sample Output

[3, 5, 7, 9]

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
def odd_numbers_in_range(): start, end = 3, 10 # Your code here return
Log in or sign up to run or submit your code.Log inSign up
Input
3, 10
Expected Output
[3, 5, 7, 9]