Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Related Rants
(24.)
Rewrite the following code fragment that saves on the number comparisons : week_day=int(input("Enter any number (1-7) -> "))
if week_day==1: print("The day is Monday")
if week_day==3:
print("The day is Wednesday")
if week_day==5:
print("The day is Friday")
if week_day==7:
print("The day is Sunday")
of
question
python programming