Write a Program in Python to Print Month Name for the Given Month Number

preview_player
Показать описание
Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write a Program in Python to Print Month Name for the Given Month Number

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

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

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

Code1
=============================
import calendar

month_number = int(input("Enter Month Number : "))

if 1 replace_this_with_less_than_symbol= month_number replace_this_with_less_than_symbol= 12:
else:
print("Invalid Month !")

Code2
=============================
m = {1: "January", 2: "February", 3: "March", 4: "April", 5: "May", 6: "June", 7: "July",
8: "August", 9: "September", 10: "October", 11: "November", 12: "December"}

month_number = int(input("Enter Month Number : "))

if 1 replace_this_with_less_than_symbol= month_number replace_this_with_less_than_symbol= 12:
else:
print("Invalid Month !")

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Рекомендации по теме
Комментарии
Автор

Hii, this video of great help, Thanks for making it! I wanted to learn how would you code it so that if a wrong month number is entered then it would go back and let the user reenter the month again.

purvalpatel
Автор

hii, need help to slove python issue please replay

Nitishkumar-vzde