What's new

Help Need help po please sa python

Status
Not open for further replies.

uberchilled

Forum Veteran
Joined
Sep 23, 2015
Posts
1,396
Solutions
128
Reaction
1,212
Points
587
patulong naman po sa coding nito, di ko makuha


Screenshot 2022-07-20 170443.jpg
 

Attachments

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])
 
Last edited:
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

Back
Top