❓ Help Need help po please sa python

Status
Not open for further replies.
Python:
color = ['Red', 'White', 'Black', 'Green']
for y in range(len(color)):
    print('['+str(y)+']', color[y], end = "\n")

how = int(input('How many Colors you want to show [from 0 - 3]: '))

if how > 3 and how < 0:
      print("Invalid Number")
else:
    for x in range(how+1):
        print(color[x])
 
Python:
color = ['Red', 'White', 'Black', 'Green']
for y in range(len(color)):
    print('['+str(y)+']', color[y], end = "\n")

how = int(input('How many Colors you want to show [from 0 - 3]: '))

if how > 3 and how > 0:
      print("Invalid Number")
else:
    for x in range(how+1):
        print(color[x])
thank you lods 🙏. life saver :love:
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 4
    Replies
  • 384
    Views
  • 2
    Participants
Last reply from:
uberchilled

Trending Topics

Online now

Members online
1,028
Guests online
1,855
Total visitors
2,883

Forum statistics

Threads
2,293,456
Posts
29,084,176
Members
1,208,806
Latest member
anonumous
Back
Top