livepython.net

65. Python Program to Check If a Day Is a Weekend

Easyand, or, not

Overview

Check two possible answers with or.

Problem Statement

Read a day name, written with a capital first letter. Print Weekend for Saturday or Sunday, and Weekday for any other day. For example, for Sunday:

Weekend

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

Sunday

Output

The output for that example:

Weekend

The tests try 3 different inputs.

Learn this firstChapter 8 · Python Logical Operators: and, or, not
solution.py
# write your code here

EXPECTED OUTPUT

1Weekend

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.