Nicklaus P.

asked • 02/26/17

How do I assign a day of the week to a number using a function in Python Pyscripter?

Assume the days of the week are numbers 0,1,2,3,4,5,6 from Sunday to Saturday. Write a function which is given the day number, and it returns the day name (a String). Make sure to use a return statement in your function. Call your program NumToDay.

2 Answers By Expert Tutors

By:

Kapo C. answered • 02/26/17

Tutor
4.9 (18)

Experienced scientist, passionnate about teaching

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.