Hello,
I am currently working on a dummy project and I keep receiving on error message "List Indices Error" when I try to run the code:
I am currently working on a dummy project and I keep receiving on error message "List Indices Error" when I try to run the code:
print("Welcome to the Urban") ab = {'J_Cole': 1, 'Drake': 2, 'Jay_Z': 3, 'Beyonce': 4, 'Kendrick_Lamar': 5} input('''Please select your favorite artist: J_Cole Drake Jay_Z Beyonce Kendrick_Lamar''') while True: ab = ['J_Cole', 'Drake', 'Jay_Z', 'Beyonce', 'Kendrick_Lamar'] user_fav_artist = str(input('Select you favorite artist:')) user_fav_artist = ab if user_fav_artist == str(ab[0,4]): print('Thank you for selecting') if str(input('Would you like to receive news updates? yes or no:')) == 'yes': continue else: print('You can subscribe later if you would like') break else: print('Your selection is invalid')