❓ Help Need help po please sa python

Status
Not open for further replies.

uberchilled

Forum Veteran
patulong naman po sa coding nito, di ko makuha


Screenshot 2022-07-20 170443.jpg
 
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
  • 379
    Views
  • 2
    Participants
Last reply from:
uberchilled

Online now

Members online
644
Guests online
650
Total visitors
1,294

Forum statistics

Threads
2,276,935
Posts
28,973,174
Members
1,230,625
Latest member
heyuhe
Back
Top