How to print number from 1to 10 using funtion but without using loops..in python.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to print number from 1to 10 using funtion but without using loops..in python..

pleas answer me

13th Dec 2017, 6:04 PM
Tharindu
2 Answers
+ 2
print(list(range(1,11))
13th Dec 2017, 6:49 PM
Oma Falk
Oma Falk - avatar
0
thanks brother!
14th Dec 2017, 1:34 AM
Tharindu