+ 2

How to make a list like this[1,2,3,4,5,6,7,...]in python ?

Don't laught at me I am a beginner !

14th Feb 2021, 10:38 AM
Atef Bourounia
Atef Bourounia - avatar
4 odpowiedzi
+ 7
Atef Bourounia , please do a try by yourself first, and post this code here. thanks!
14th Feb 2021, 10:39 AM
Lothar
Lothar - avatar
+ 2
Hi! In the Python Core Course, you can start your exciting journe to get the tools to code a Python list! Start with revisit lesson 24 - 25, and later even lession 57. Regards /Per B 🙂
14th Feb 2021, 1:00 PM
Per Bratthammar
Per Bratthammar - avatar
+ 1
[i for i in range(20)]
15th Feb 2021, 11:00 PM
3320
3320 - avatar
+ 1
Li = [] For i in range 10: Li.append(i) Print(Li)
16th Feb 2021, 8:48 AM
Divyanshu Pandey
Divyanshu Pandey - avatar