mardi 1 septembre 2020

Problem related to True or False / If-else [closed]

I just made an account here in order to ask professionals for help. I am searching for the solution on how to do this.

enter image description here

I am referring to the weekdays or weekend part. If the user were to write either two, how do you assign it to numbers? Like if-else statements. if x == weekdays print("Your payment is RM 220") I know this doesn't make 100% sense, but I tried explaining as best as I could. More insight to what I am doing is basically writing up a payment. Yes, you could tell I'm just a regular high school student trying to finish up their project. Maybe I haven't learn or understand more functions..

Aucun commentaire:

Enregistrer un commentaire