code to display day name.
day_names= ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' , 'Sunday']
input:3
output:wednesday
day_names= ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' , 'Sunday']
N = int(input('Enter an integer: '))
print(day_names[N-1])
Comments
Leave a comment