lundi 22 mars 2021

How to use multiple inputs to determine a variable in an If / Else Statement in python 3 [duplicate]

Can you determine a varible by giving the user a limited amount of inputs in python? As I tried to do below...

 full_name = input('What is your name?')



while True:
    day = input('What day is it?')

    if day == 'monday', 'tuesday', 'thursday', 'friday', 'saturday', 'sunday':
        day = input()
    else:
        print('Please type in what day it is')

print('today is', day)

Sorry if I am explaining this weirdly, I am a beginner lol

Aucun commentaire:

Enregistrer un commentaire