Question: Please write me the codes for those two questions. they should not be long.I just do not know how to code Python language ASAP Complete
Please write me the codes for those two questions. they should not be long.I just do not know how to code
Python language
ASAP


Complete the two programming exercises in the "main.py" file. (15 Points) Accept a number from the console and determine if the number is odd or even. Print exactly "even" or "odd". If the user's entry is not a whole number (integer), print "invalid" Examples: Please enter a number: 5 odd Please enter a number: 16 even Please enter a number: No u invalid Hint: Modulus can be useful for this exercise (15 Points) Accept an input from the console. Print the appropriate output for the following input: - "M" or "W" or "MW": - "Monday/Wednesday Class" - "T" or "R" or "TR": - "Tuesday/Thursday Class" - "F" or "S" or "FS": - "Weekend Class" - Anything else: "Unknown Schedule Examples: Please enter class day(s): MW Monday/Wednesday Class Please enter class day(s): S Weekend Class Please enter class day(s): TWS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
