Analytics Vidhya
Published in

Analytics Vidhya

Exercises with Python

Task: print numbers from n1 to n2

This is a pretty simple exercise to start. A user inputs two values n1 and n2, the program should print all numbers between these two.

We start with a simple solution, later we find some problems in it.

--

--

Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store