Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with list
#5
an example

value1 = 12
value2 = 13
value3 = 14
value4 = 15
value5 = 16
value6 = 17
mylist = []
mylist.append(value1)
mylist.append(value2)
mylist.append(value3)
mylist.append(value4)
mylist.append(value5)
mylist.append(value6)

for parts in range(2, 5):
    print(mylist[parts])
Reply


Messages In This Thread
problem with list - by darktitan - Jul-27-2018, 03:51 PM
RE: problem with list - by ichabod801 - Jul-27-2018, 07:00 PM
RE: problem with list - by darktitan - Jul-27-2018, 10:13 PM
RE: problem with list - by darktitan - Jul-28-2018, 06:34 AM
RE: problem with list - by Axel_Erfurt - Jul-28-2018, 07:11 AM
RE: problem with list - by darktitan - Jul-28-2018, 07:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with "Number List" problem on HackerRank Pnerd 5 2,221 Apr-12-2022, 12:25 AM
Last Post: Pnerd

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020