Horje
switch in python' Code Example
switch in python'
def week(i):
    switcher={
        0:'Sunday',
        1:'Monday',
        2:'Tuesday',
        3:'Wednesday',
        4:'Thursday',
        5:'Friday',
        6:'Saturday'
    }
    return switcher.get(i,"Invalid day of week")

print(week(5)) # Call the function




Python

Related
Convert files to JPEG Code Example Convert files to JPEG Code Example
python get an online file Code Example python get an online file Code Example
matrix python math Code Example matrix python math Code Example
* pattern program in python Code Example * pattern program in python Code Example
ffmpeg python Code Example ffmpeg python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8