python programming ?

dayOne = ('monday') or ('Monday')

dayTwo = ('tuesday') or ('Tuesday')

dayThree = ('wednesday') or ('Wednesday')

dayFour = ('Thursday') or ('thursday')

dayFive ('friday') or ("Friday")  

daySix = ('saturday') or ('Saturday')    

daySeven = ('sunday') or ("Sunday")

   

im using python and  im trying to make the the word on the left of the equals sign variables. its not working what am i doing wrong ?

1 Answer

Relevance
  • 4 weeks ago

    Hi, Logan.

    Although you could use tuples like this:

    dayOne = ('monday', 'Monday')

    I think it would be best to use a list for this:

    days = [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ]

    print (days[0]) # first item in list

    print (days[0].lower()) # lower case

Still have questions? Get your answers by asking now.