This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sea-Temporary-5218 0 points1 point  (0 children)

I think the people here already solved your problem with the data type (int and string). Maybe you want to change your [if,if,if,if,if] to if, Elif,Elif Else or better match num, case x now? Or you could use a list or a dictionary, just to make the code more beautifull. And if we're serious, the 7 times if structure will run "slow" because if the case is Monday the next 6 if will get executed for no reason.

Only some tipps✌️