аватар question@mail.ru · 01.01.1970 03:00

How to write a CASE selection operator on Python?

Solve the problem using Python

the schedule of the doctor's reception hours is given. To display the doctor’s reception clock on a given day of the week.

I wrote to Pascal, but I can’t translate to Python.

  Program Z10; var  N: Integer; begin  Readln (n);  Writeln ( '' enter the serial number of the week of the week ');   case  n of  1 : witeln ( 'Monday 8: 00-14: 00' );   2 : writeln ( 'Tuesday 14: 00-20: 00' );   3 : writeln ( 'Wednesday 8: 00-14: 00' );   4 : writeln ( 'Thursday 14: 00-20: 00' );   5 : writeln ( 'Friday 8: 00-14: 00' );   else  writeln ( '' no ');  end; end.  

Latest

Similar