This project prints a list of even numbers and odd numbers in a given range. It uses the range function to implement the logic of the program.
This is a project that uses the
range() function and for loop to print the list of even numbers and odd numbers in a given range. This program helps us in understanding the "step" parameter used in the range function. It also helps to understand the concept of for loops with
This project can also be implemented using conditional statements, here it was implemented using the range() function without using conditional statements. The main idea behind this project is to understand the use of the "step" parameter in the
Submitted by Nagapuri Swathi (Swathi)
Download packets of source code on Coders Packet