Skip to content
Advertisement

Print range of numbers on same line

Using python I want to print a range of numbers on the same line. how can I do this using python, I can do it using C by not adding n, but how can I do it using python.

JavaScript

I am trying to get this result.

JavaScript

Advertisement

Answer

Python 2

JavaScript

Python 3

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement