Write a Python Program to Input Week Number and Print Week Day

preview_player
Показать описание
Hi, in this video I tried to explain how to Write a Python Program to Input Week Number and Print Week Day

Buy Coding T-Shirt
===========================

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

Code
=========================
week = {1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", 5: "Friday", 6: "Saturday", 7: "Sunday"}
number = int(input("Please Enter Week Number (Between 1-7) : "))
if number replace_this_with_lesser_than_symbol 1 or number replace_this_with_greater_than_symbol 7:
print("Invalid Weekday ")
else:
print("Today is ", week[number])

Keywords
================
how to print week day in python,
print week day in python,
input week number and print week day in python,
python print weekday name,
python print day of week name,
python print day of week,
python print day of week name,
python datetime print day of week,
python print day of the week,
Рекомендации по теме
Комментарии
Автор

How to do the same question without inputing week day number?

HetalKesarwani